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 thelistenerTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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-classelement
-
-
-
Method Detail
-
description
ListenerType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ListenerType
-
getAllDescription
List<String> getAllDescription()
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
ListenerType<T> removeAllDescription()
Removes thedescriptionelement- Returns:
- the current instance of
ListenerType
-
displayName
ListenerType<T> displayName(String... values)
Creates for all String objects representingdisplay-nameelements, a newdisplay-nameelement- Parameters:
values- list ofdisplay-nameobjects- Returns:
- the current instance of
ListenerType
-
getAllDisplayName
List<String> 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>
-
getAllIcon
List<IconType<ListenerType<T>>> getAllIcon()
Returns alliconelements- Returns:
- list of
icon
-
removeAllIcon
ListenerType<T> removeAllIcon()
Removes alliconelements- Returns:
- the current instance of
IconType>
-
listenerClass
ListenerType<T> listenerClass(String 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
ListenerType<T> id(String 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
-
-