Class ExtensionTypeImpl<T>

  • All Implemented Interfaces:
    ExtensionType<T>, org.jboss.shrinkwrap.descriptor.api.Child<T>

    public class ExtensionTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ExtensionType<T>
    This class implements the extensionType xsd type
    • Constructor Detail

      • ExtensionTypeImpl

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

        public ExtensionTypeImpl​(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>
      • getOrCreateConfigProperty

        public ConfigPropertyType<ExtensionType<T>> getOrCreateConfigProperty()
        If not already created, a new config-property element with the given value will be created. Otherwise, the existing config-property element will be returned.
        Specified by:
        getOrCreateConfigProperty in interface ExtensionType<T>
        Returns:
        a new or existing instance of ConfigPropertyType>
      • className

        public ExtensionType<T> className​(String className)
        Sets the class-name attribute
        Specified by:
        className in interface ExtensionType<T>
        Parameters:
        className - the value for the attribute class-name
        Returns:
        the current instance of ExtensionType
      • getClassName

        public String getClassName()
        Returns the class-name attribute
        Specified by:
        getClassName in interface ExtensionType<T>
        Returns:
        the value defined for the attribute class-name