public class PropertyTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, PropertyType<T>
propertyType
xsd typeConstructor and 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) |
Modifier and Type | Method and Description |
---|---|
String |
getId()
Returns the
id attribute |
String |
getName()
Returns the
name element |
String |
getValue()
Returns the
value element |
PropertyType<T> |
id(String id)
Sets the
id attribute |
PropertyType<T> |
name(String name)
Sets the
name element |
PropertyType<T> |
removeId()
Removes the
id attribute |
PropertyType<T> |
removeName()
Removes the
name element |
PropertyType<T> |
removeValue()
Removes the
value element |
T |
up() |
PropertyType<T> |
value(String value)
Sets the
value element |
public PropertyTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public PropertyType<T> name(String name)
name
elementname
in interface PropertyType<T>
name
- the value for the element name
PropertyType
public String getName()
name
elementgetName
in interface PropertyType<T>
name
public PropertyType<T> removeName()
name
elementremoveName
in interface PropertyType<T>
PropertyType
public PropertyType<T> value(String value)
value
elementvalue
in interface PropertyType<T>
value
- the value for the element value
PropertyType
public String getValue()
value
elementgetValue
in interface PropertyType<T>
value
public PropertyType<T> removeValue()
value
elementremoveValue
in interface PropertyType<T>
PropertyType
public PropertyType<T> id(String id)
id
attributeid
in interface PropertyType<T>
id
- the value for the attribute id
PropertyType
public String getId()
id
attributegetId
in interface PropertyType<T>
id
public PropertyType<T> removeId()
id
attributeremoveId
in interface PropertyType<T>
PropertyType
Copyright © 2021 JBoss by Red Hat. All rights reserved.