Class JmsDestinationTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.JmsDestinationTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,JmsDestinationType<T>
public class JmsDestinationTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, JmsDestinationType<T>
This class implements thejms-destinationTypexsd type
-
-
Constructor Summary
Constructors Constructor Description JmsDestinationTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)JmsDestinationTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description JmsDestinationType<T>className(String className)Sets theclass-nameelementPropertyType<JmsDestinationType<T>>createProperty()Creates a newpropertyelementJmsDestinationType<T>description(String description)Sets thedescriptionelementJmsDestinationType<T>destinationName(String destinationName)Sets thedestination-nameelementList<PropertyType<JmsDestinationType<T>>>getAllProperty()Returns allpropertyelementsStringgetClassName()Returns theclass-nameelementStringgetDescription()Returns thedescriptionelementStringgetDestinationName()Returns thedestination-nameelementStringgetId()Returns theidattributeStringgetName()Returns thenameelementPropertyType<JmsDestinationType<T>>getOrCreateProperty()If not already created, a newpropertyelement will be created and returned.StringgetResourceAdapter()Returns theresource-adapterelementJmsDestinationType<T>id(String id)Sets theidattributeJmsDestinationType<T>name(String name)Sets thenameelementJmsDestinationType<T>removeAllProperty()Removes allpropertyelementsJmsDestinationType<T>removeClassName()Removes theclass-nameelementJmsDestinationType<T>removeDescription()Removes thedescriptionelementJmsDestinationType<T>removeDestinationName()Removes thedestination-nameelementJmsDestinationType<T>removeId()Removes theidattributeJmsDestinationType<T>removeName()Removes thenameelementJmsDestinationType<T>removeResourceAdapter()Removes theresource-adapterelementJmsDestinationType<T>resourceAdapter(String resourceAdapter)Sets theresource-adapterelementTup()
-
-
-
Method Detail
-
description
public JmsDestinationType<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceJmsDestinationType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
JmsDestinationType
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceJmsDestinationType<T>- Returns:
- the node defined for the element
description
-
removeDescription
public JmsDestinationType<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
name
public JmsDestinationType<T> name(String name)
Sets thenameelement- Specified by:
namein interfaceJmsDestinationType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
JmsDestinationType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfaceJmsDestinationType<T>- Returns:
- the node defined for the element
name
-
removeName
public JmsDestinationType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
className
public JmsDestinationType<T> className(String className)
Sets theclass-nameelement- Specified by:
classNamein interfaceJmsDestinationType<T>- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
JmsDestinationType
-
getClassName
public String getClassName()
Returns theclass-nameelement- Specified by:
getClassNamein interfaceJmsDestinationType<T>- Returns:
- the node defined for the element
class-name
-
removeClassName
public JmsDestinationType<T> removeClassName()
Removes theclass-nameelement- Specified by:
removeClassNamein interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
resourceAdapter
public JmsDestinationType<T> resourceAdapter(String resourceAdapter)
Sets theresource-adapterelement- Specified by:
resourceAdapterin interfaceJmsDestinationType<T>- Parameters:
resourceAdapter- the value for the elementresource-adapter- Returns:
- the current instance of
JmsDestinationType
-
getResourceAdapter
public String getResourceAdapter()
Returns theresource-adapterelement- Specified by:
getResourceAdapterin interfaceJmsDestinationType<T>- Returns:
- the node defined for the element
resource-adapter
-
removeResourceAdapter
public JmsDestinationType<T> removeResourceAdapter()
Removes theresource-adapterelement- Specified by:
removeResourceAdapterin interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
destinationName
public JmsDestinationType<T> destinationName(String destinationName)
Sets thedestination-nameelement- Specified by:
destinationNamein interfaceJmsDestinationType<T>- Parameters:
destinationName- the value for the elementdestination-name- Returns:
- the current instance of
JmsDestinationType
-
getDestinationName
public String getDestinationName()
Returns thedestination-nameelement- Specified by:
getDestinationNamein interfaceJmsDestinationType<T>- Returns:
- the node defined for the element
destination-name
-
removeDestinationName
public JmsDestinationType<T> removeDestinationName()
Removes thedestination-nameelement- Specified by:
removeDestinationNamein interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
getOrCreateProperty
public PropertyType<JmsDestinationType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Specified by:
getOrCreatePropertyin interfaceJmsDestinationType<T>- Returns:
- the instance defined for the element
property
-
createProperty
public PropertyType<JmsDestinationType<T>> createProperty()
Creates a newpropertyelement- Specified by:
createPropertyin interfaceJmsDestinationType<T>- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
public List<PropertyType<JmsDestinationType<T>>> getAllProperty()
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceJmsDestinationType<T>- Returns:
- list of
property
-
removeAllProperty
public JmsDestinationType<T> removeAllProperty()
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceJmsDestinationType<T>- Returns:
- the current instance of
PropertyType>
-
id
public JmsDestinationType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceJmsDestinationType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
JmsDestinationType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceJmsDestinationType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public JmsDestinationType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceJmsDestinationType<T>- Returns:
- the current instance of
JmsDestinationType
-
-