Class ListenerTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee6.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 thelistenerTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ListenerTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ListenerTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IconType<ListenerType<T>>createIcon()Creates a newiconelementListenerType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementListenerType<T>displayName(String... values)Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelementList<String>getAllDescription()Returns alldescriptionelementsList<String>getAllDisplayName()Returns alldisplay-nameelementsList<IconType<ListenerType<T>>>getAllIcon()Returns alliconelementsStringgetId()Returns theidattributeStringgetListenerClass()Returns thelistener-classelementIconType<ListenerType<T>>getOrCreateIcon()If not already created, a newiconelement will be created and returned.ListenerType<T>id(String id)Sets theidattributeListenerType<T>listenerClass(String listenerClass)Sets thelistener-classelementListenerType<T>removeAllDescription()Removes thedescriptionelementListenerType<T>removeAllDisplayName()Removes thedisplay-nameelementListenerType<T>removeAllIcon()Removes alliconelementsListenerType<T>removeId()Removes theidattributeListenerType<T>removeListenerClass()Removes thelistener-classelementTup()
-
-
-
Method Detail
-
description
public ListenerType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceListenerType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ListenerType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceListenerType<T>- Returns:
- list of
description
-
removeAllDescription
public ListenerType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
displayName
public ListenerType<T> displayName(String... values)
Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelement- Specified by:
displayNamein interfaceListenerType<T>- Parameters:
values- list ofdisplay-nameobjects- Returns:
- the current instance of
ListenerType
-
getAllDisplayName
public List<String> getAllDisplayName()
Returns alldisplay-nameelements- Specified by:
getAllDisplayNamein interfaceListenerType<T>- Returns:
- list of
display-name
-
removeAllDisplayName
public ListenerType<T> removeAllDisplayName()
Removes thedisplay-nameelement- Specified by:
removeAllDisplayNamein interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
getOrCreateIcon
public IconType<ListenerType<T>> getOrCreateIcon()
If not already created, a newiconelement will be created and returned. Otherwise, the first existingiconelement will be returned.- Specified by:
getOrCreateIconin interfaceListenerType<T>- Returns:
- the instance defined for the element
icon
-
createIcon
public IconType<ListenerType<T>> createIcon()
Creates a newiconelement- Specified by:
createIconin interfaceListenerType<T>- Returns:
- the new created instance of
IconType>
-
getAllIcon
public List<IconType<ListenerType<T>>> getAllIcon()
Returns alliconelements- Specified by:
getAllIconin interfaceListenerType<T>- Returns:
- list of
icon
-
removeAllIcon
public ListenerType<T> removeAllIcon()
Removes alliconelements- Specified by:
removeAllIconin interfaceListenerType<T>- Returns:
- the current instance of
IconType>
-
listenerClass
public ListenerType<T> listenerClass(String listenerClass)
Sets thelistener-classelement- Specified by:
listenerClassin interfaceListenerType<T>- Parameters:
listenerClass- the value for the elementlistener-class- Returns:
- the current instance of
ListenerType
-
getListenerClass
public String getListenerClass()
Returns thelistener-classelement- Specified by:
getListenerClassin interfaceListenerType<T>- Returns:
- the node defined for the element
listener-class
-
removeListenerClass
public ListenerType<T> removeListenerClass()
Removes thelistener-classelement- Specified by:
removeListenerClassin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
id
public ListenerType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceListenerType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ListenerType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceListenerType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ListenerType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
-