public class ListenerTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ListenerType<T>
listenerType xsd type| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
IconType<ListenerType<T>> |
createIcon()
Creates a new
icon element |
ListenerType<T> |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
ListenerType<T> |
displayName(String... values)
Creates for all String objects representing
display-name elements,
a new display-name element |
List<String> |
getAllDescription()
Returns all
description elements |
List<String> |
getAllDisplayName()
Returns all
display-name elements |
List<IconType<ListenerType<T>>> |
getAllIcon()
Returns all
icon elements |
String |
getId()
Returns the
id attribute |
String |
getListenerClass()
Returns the
listener-class element |
IconType<ListenerType<T>> |
getOrCreateIcon()
If not already created, a new
icon element will be created and returned. |
ListenerType<T> |
id(String id)
Sets the
id attribute |
ListenerType<T> |
listenerClass(String listenerClass)
Sets the
listener-class element |
ListenerType<T> |
removeAllDescription()
Removes the
description element |
ListenerType<T> |
removeAllDisplayName()
Removes the
display-name element |
ListenerType<T> |
removeAllIcon()
Removes all
icon elements |
ListenerType<T> |
removeId()
Removes the
id attribute |
ListenerType<T> |
removeListenerClass()
Removes the
listener-class element |
T |
up() |
public ListenerTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public ListenerType<T> description(String... values)
description elements,
a new description elementdescription in interface ListenerType<T>values - list of description objectsListenerTypepublic List<String> getAllDescription()
description elementsgetAllDescription in interface ListenerType<T>descriptionpublic ListenerType<T> removeAllDescription()
description elementremoveAllDescription in interface ListenerType<T>ListenerTypepublic ListenerType<T> displayName(String... values)
display-name elements,
a new display-name elementdisplayName in interface ListenerType<T>values - list of display-name objectsListenerTypepublic List<String> getAllDisplayName()
display-name elementsgetAllDisplayName in interface ListenerType<T>display-namepublic ListenerType<T> removeAllDisplayName()
display-name elementremoveAllDisplayName in interface ListenerType<T>ListenerTypepublic IconType<ListenerType<T>> getOrCreateIcon()
icon element will be created and returned.
Otherwise, the first existing icon element will be returned.getOrCreateIcon in interface ListenerType<T>iconpublic IconType<ListenerType<T>> createIcon()
icon elementcreateIcon in interface ListenerType<T>IconType> public List<IconType<ListenerType<T>>> getAllIcon()
icon elementsgetAllIcon in interface ListenerType<T>iconpublic ListenerType<T> removeAllIcon()
icon elementsremoveAllIcon in interface ListenerType<T>IconType> public ListenerType<T> listenerClass(String listenerClass)
listener-class elementlistenerClass in interface ListenerType<T>listenerClass - the value for the element listener-classListenerTypepublic String getListenerClass()
listener-class elementgetListenerClass in interface ListenerType<T>listener-classpublic ListenerType<T> removeListenerClass()
listener-class elementremoveListenerClass in interface ListenerType<T>ListenerTypepublic ListenerType<T> id(String id)
id attributeid in interface ListenerType<T>id - the value for the attribute idListenerTypepublic String getId()
id attributegetId in interface ListenerType<T>idpublic ListenerType<T> removeId()
id attributeremoveId in interface ListenerType<T>ListenerTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.