Class ListenerTypeImpl<T>

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

    public class ListenerTypeImpl<T>
    extends Object
    implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ListenerType<T>
    This class implements the listenerType xsd type
    • Constructor Detail

      • ListenerTypeImpl

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

        public ListenerTypeImpl​(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>
      • description

        public ListenerType<T> description​(String... values)
        Creates for all String objects representing description elements, a new description element
        Specified by:
        description in interface ListenerType<T>
        Parameters:
        values - list of description objects
        Returns:
        the current instance of ListenerType
      • displayName

        public ListenerType<T> displayName​(String... values)
        Creates for all String objects representing display-name elements, a new display-name element
        Specified by:
        displayName in interface ListenerType<T>
        Parameters:
        values - list of display-name objects
        Returns:
        the current instance of ListenerType
      • getOrCreateIcon

        public IconType<ListenerType<T>> getOrCreateIcon()
        If not already created, a new icon element will be created and returned. Otherwise, the first existing icon element will be returned.
        Specified by:
        getOrCreateIcon in interface ListenerType<T>
        Returns:
        the instance defined for the element icon
      • listenerClass

        public ListenerType<T> listenerClass​(String listenerClass)
        Sets the listener-class element
        Specified by:
        listenerClass in interface ListenerType<T>
        Parameters:
        listenerClass - the value for the element listener-class
        Returns:
        the current instance of ListenerType
      • getListenerClass

        public String getListenerClass()
        Returns the listener-class element
        Specified by:
        getListenerClass in interface ListenerType<T>
        Returns:
        the node defined for the element listener-class
      • id

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

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

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