Class 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 Detail

      • 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 Detail

      • 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
      • 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
      • 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