Interface ListenerType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ListenerTypeImpl
public interface ListenerType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
listenerType xsd type-
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-classelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ListenerType
-
getAllDescription
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
ListenerType<T> removeAllDescription()Removes thedescriptionelement- Returns:
- the current instance of
ListenerType
-
displayName
Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelement- Parameters:
values- list ofdisplay-nameobjects- Returns:
- the current instance of
ListenerType
-
getAllDisplayName
Returns alldisplay-nameelements- Returns:
- list of
display-name
-
removeAllDisplayName
ListenerType<T> removeAllDisplayName()Removes thedisplay-nameelement- Returns:
- the current instance of
ListenerType
-
getOrCreateIcon
IconType<ListenerType<T>> getOrCreateIcon()If not already created, a newiconelement will be created and returned. Otherwise, the first existingiconelement will be returned.- Returns:
- the instance defined for the element
icon
-
createIcon
IconType<ListenerType<T>> createIcon()Creates a newiconelement- Returns:
- the new created instance of
IconType<ListenerType>
-
getAllIcon
List<IconType<ListenerType<T>>> getAllIcon()Returns alliconelements- Returns:
- list of
icon
-
removeAllIcon
ListenerType<T> removeAllIcon()Removes alliconelements- Returns:
- the current instance of
IconType<ListenerType>
-
listenerClass
Sets thelistener-classelement- Parameters:
listenerClass- the value for the elementlistener-class- Returns:
- the current instance of
ListenerType
-
getListenerClass
String getListenerClass()Returns thelistener-classelement- Returns:
- the node defined for the element
listener-class
-
removeListenerClass
ListenerType<T> removeListenerClass()Removes thelistener-classelement- Returns:
- the current instance of
ListenerType
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ListenerType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
ListenerType<T> removeId()Removes theidattribute- Returns:
- the current instance of
ListenerType
-