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 Summary
ConstructorsConstructorDescriptionListenerTypeImpl(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
Modifier and TypeMethodDescriptionCreates a newiconelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementdisplayName(String... values) Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelementReturns alldescriptionelementsReturns alldisplay-nameelementsReturns alliconelementsgetId()Returns theidattributeReturns thelistener-classelementIf not already created, a newiconelement will be created and returned.Sets theidattributelistenerClass(String listenerClass) Sets thelistener-classelementRemoves thedescriptionelementRemoves thedisplay-nameelementRemoves alliconelementsremoveId()Removes theidattributeRemoves thelistener-classelementup()
-
Constructor Details
-
ListenerTypeImpl
-
ListenerTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceListenerType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ListenerType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceListenerType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
displayName
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
Returns alldisplay-nameelements- Specified by:
getAllDisplayNamein interfaceListenerType<T>- Returns:
- list of
display-name
-
removeAllDisplayName
Removes thedisplay-nameelement- Specified by:
removeAllDisplayNamein interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
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
Creates a newiconelement- Specified by:
createIconin interfaceListenerType<T>- Returns:
- the new created instance of
IconType<ListenerType>
-
getAllIcon
Returns alliconelements- Specified by:
getAllIconin interfaceListenerType<T>- Returns:
- list of
icon
-
removeAllIcon
Removes alliconelements- Specified by:
removeAllIconin interfaceListenerType<T>- Returns:
- the current instance of
IconType<ListenerType>
-
listenerClass
Sets thelistener-classelement- Specified by:
listenerClassin interfaceListenerType<T>- Parameters:
listenerClass- the value for the elementlistener-class- Returns:
- the current instance of
ListenerType
-
getListenerClass
Returns thelistener-classelement- Specified by:
getListenerClassin interfaceListenerType<T>- Returns:
- the node defined for the element
listener-class
-
removeListenerClass
Removes thelistener-classelement- Specified by:
removeListenerClassin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-
id
Sets theidattribute- Specified by:
idin interfaceListenerType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ListenerType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceListenerType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceListenerType<T>- Returns:
- the current instance of
ListenerType
-