Class LicenseTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector16.LicenseTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,LicenseType<T>
public class LicenseTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, LicenseType<T>
This class implements thelicenseTypexsd type
-
-
Constructor Summary
Constructors Constructor Description LicenseTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)LicenseTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LicenseType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsStringgetId()Returns theidattributeLicenseType<T>id(String id)Sets theidattributeBooleanisLicenseRequired()Returns thelicense-requiredelementLicenseType<T>licenseRequired(Boolean licenseRequired)Sets thelicense-requiredelementLicenseType<T>removeAllDescription()Removes thedescriptionelementLicenseType<T>removeId()Removes theidattributeLicenseType<T>removeLicenseRequired()Removes thelicense-requiredelementTup()
-
-
-
Method Detail
-
description
public LicenseType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceLicenseType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
LicenseType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceLicenseType<T>- Returns:
- list of
description
-
removeAllDescription
public LicenseType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceLicenseType<T>- Returns:
- the current instance of
LicenseType
-
licenseRequired
public LicenseType<T> licenseRequired(Boolean licenseRequired)
Sets thelicense-requiredelement- Specified by:
licenseRequiredin interfaceLicenseType<T>- Parameters:
licenseRequired- the value for the elementlicense-required- Returns:
- the current instance of
LicenseType
-
isLicenseRequired
public Boolean isLicenseRequired()
Returns thelicense-requiredelement- Specified by:
isLicenseRequiredin interfaceLicenseType<T>- Returns:
- the node defined for the element
license-required
-
removeLicenseRequired
public LicenseType<T> removeLicenseRequired()
Removes thelicense-requiredelement- Specified by:
removeLicenseRequiredin interfaceLicenseType<T>- Returns:
- the current instance of
LicenseType
-
id
public LicenseType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceLicenseType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
LicenseType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceLicenseType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public LicenseType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceLicenseType<T>- Returns:
- the current instance of
LicenseType
-
-