Class PropertyTypeImpl<T>

java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee6.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 the propertyType xsd type
  • Constructor Details

    • PropertyTypeImpl

      public PropertyTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
    • PropertyTypeImpl

      public PropertyTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
  • Method Details

    • up

      public T up()
      Specified by:
      up in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
    • name

      public PropertyType<T> name(String name)
      Sets the name element
      Specified by:
      name in interface PropertyType<T>
      Parameters:
      name - the value for the element name
      Returns:
      the current instance of PropertyType
    • getName

      public String getName()
      Returns the name element
      Specified by:
      getName in interface PropertyType<T>
      Returns:
      the node defined for the element name
    • removeName

      public PropertyType<T> removeName()
      Removes the name element
      Specified by:
      removeName in interface PropertyType<T>
      Returns:
      the current instance of PropertyType
    • value

      public PropertyType<T> value(String value)
      Sets the value element
      Specified by:
      value in interface PropertyType<T>
      Parameters:
      value - the value for the element value
      Returns:
      the current instance of PropertyType
    • getValue

      public String getValue()
      Returns the value element
      Specified by:
      getValue in interface PropertyType<T>
      Returns:
      the node defined for the element value
    • removeValue

      public PropertyType<T> removeValue()
      Removes the value element
      Specified by:
      removeValue in interface PropertyType<T>
      Returns:
      the current instance of PropertyType
    • id

      public PropertyType<T> id(String id)
      Sets the id attribute
      Specified by:
      id in interface PropertyType<T>
      Parameters:
      id - the value for the attribute id
      Returns:
      the current instance of PropertyType
    • getId

      public String getId()
      Returns the id attribute
      Specified by:
      getId in interface PropertyType<T>
      Returns:
      the value defined for the attribute id
    • removeId

      public PropertyType<T> removeId()
      Removes the id attribute
      Specified by:
      removeId in interface PropertyType<T>
      Returns:
      the current instance of PropertyType