Class ListenerTypeImpl<T>

java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee7.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 Details

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

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

      public List<String> getAllDescription()
      Returns all description elements
      Specified by:
      getAllDescription in interface ListenerType<T>
      Returns:
      list of description
    • removeAllDescription

      public ListenerType<T> removeAllDescription()
      Removes the description element
      Specified by:
      removeAllDescription in interface ListenerType<T>
      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
    • getAllDisplayName

      public List<String> getAllDisplayName()
      Returns all display-name elements
      Specified by:
      getAllDisplayName in interface ListenerType<T>
      Returns:
      list of display-name
    • removeAllDisplayName

      public ListenerType<T> removeAllDisplayName()
      Removes the display-name element
      Specified by:
      removeAllDisplayName in interface ListenerType<T>
      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
    • createIcon

      public IconType<ListenerType<T>> createIcon()
      Creates a new icon element
      Specified by:
      createIcon in interface ListenerType<T>
      Returns:
      the new created instance of IconTypeinvalid input: '<'ListenerType>
    • getAllIcon

      public List<IconType<ListenerType<T>>> getAllIcon()
      Returns all icon elements
      Specified by:
      getAllIcon in interface ListenerType<T>
      Returns:
      list of icon
    • removeAllIcon

      public ListenerType<T> removeAllIcon()
      Removes all icon elements
      Specified by:
      removeAllIcon in interface ListenerType<T>
      Returns:
      the current instance of IconTypeinvalid input: '<'ListenerType>
    • 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
    • removeListenerClass

      public ListenerType<T> removeListenerClass()
      Removes the listener-class element
      Specified by:
      removeListenerClass in interface ListenerType<T>
      Returns:
      the current instance of ListenerType
    • 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