Class PropertyTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.PropertyTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,PropertyType<T>
public class PropertyTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PropertyType<T>
This class implements thepropertyTypexsd type
-
-
Constructor Summary
Constructors Constructor Description PropertyTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)PropertyTypeImpl(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 StringgetId()Returns theidattributeStringgetName()Returns thenameelementStringgetValue()Returns thevalueelementPropertyType<T>id(String id)Sets theidattributePropertyType<T>name(String name)Sets thenameelementPropertyType<T>removeId()Removes theidattributePropertyType<T>removeName()Removes thenameelementPropertyType<T>removeValue()Removes thevalueelementTup()PropertyType<T>value(String value)Sets thevalueelement
-
-
-
Method Detail
-
name
public PropertyType<T> name(String name)
Sets thenameelement- Specified by:
namein interfacePropertyType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
PropertyType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfacePropertyType<T>- Returns:
- the node defined for the element
name
-
removeName
public PropertyType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfacePropertyType<T>- Returns:
- the current instance of
PropertyType
-
value
public PropertyType<T> value(String value)
Sets thevalueelement- Specified by:
valuein interfacePropertyType<T>- Parameters:
value- the value for the elementvalue- Returns:
- the current instance of
PropertyType
-
getValue
public String getValue()
Returns thevalueelement- Specified by:
getValuein interfacePropertyType<T>- Returns:
- the node defined for the element
value
-
removeValue
public PropertyType<T> removeValue()
Removes thevalueelement- Specified by:
removeValuein interfacePropertyType<T>- Returns:
- the current instance of
PropertyType
-
id
public PropertyType<T> id(String id)
Sets theidattribute- Specified by:
idin interfacePropertyType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
PropertyType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfacePropertyType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public PropertyType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfacePropertyType<T>- Returns:
- the current instance of
PropertyType
-
-