public class ListenerTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ListenerType<T>
listenerType
xsd typeConstructor 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
objectsListenerType
public List<String> getAllDescription()
description
elementsgetAllDescription
in interface ListenerType<T>
description
public ListenerType<T> removeAllDescription()
description
elementremoveAllDescription
in interface ListenerType<T>
ListenerType
public ListenerType<T> displayName(String... values)
display-name
elements,
a new display-name
elementdisplayName
in interface ListenerType<T>
values
- list of display-name
objectsListenerType
public List<String> getAllDisplayName()
display-name
elementsgetAllDisplayName
in interface ListenerType<T>
display-name
public ListenerType<T> removeAllDisplayName()
display-name
elementremoveAllDisplayName
in interface ListenerType<T>
ListenerType
public 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>
icon
public IconType<ListenerType<T>> createIcon()
icon
elementcreateIcon
in interface ListenerType<T>
IconType>
public List<IconType<ListenerType<T>>> getAllIcon()
icon
elementsgetAllIcon
in interface ListenerType<T>
icon
public 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-class
ListenerType
public String getListenerClass()
listener-class
elementgetListenerClass
in interface ListenerType<T>
listener-class
public ListenerType<T> removeListenerClass()
listener-class
elementremoveListenerClass
in interface ListenerType<T>
ListenerType
public ListenerType<T> id(String id)
id
attributeid
in interface ListenerType<T>
id
- the value for the attribute id
ListenerType
public String getId()
id
attributegetId
in interface ListenerType<T>
id
public ListenerType<T> removeId()
id
attributeremoveId
in interface ListenerType<T>
ListenerType
Copyright © 2021 JBoss by Red Hat. All rights reserved.