Class ConnectionFactoryResourceTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.ConnectionFactoryResourceTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ConnectionFactoryResourceType<T>
public class ConnectionFactoryResourceTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ConnectionFactoryResourceType<T>
This class implements theconnection-factory-resourceTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ConnectionFactoryResourceTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ConnectionFactoryResourceTypeImpl(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 ConnectionFactoryResourceType<T>className(String className)Sets theclass-nameelementPropertyType<ConnectionFactoryResourceType<T>>createProperty()Creates a newpropertyelementConnectionFactoryResourceType<T>description(String description)Sets thedescriptionelementList<PropertyType<ConnectionFactoryResourceType<T>>>getAllProperty()Returns allpropertyelementsStringgetClassName()Returns theclass-nameelementStringgetDescription()Returns thedescriptionelementStringgetId()Returns theidattributeIntegergetMaxPoolSize()Returns themax-pool-sizeelementIntegergetMinPoolSize()Returns themin-pool-sizeelementStringgetName()Returns thenameelementPropertyType<ConnectionFactoryResourceType<T>>getOrCreateProperty()If not already created, a newpropertyelement will be created and returned.StringgetResourceAdapter()Returns theresource-adapterelementTransactionSupportTypegetTransactionSupport()Returns thetransaction-supportelementStringgetTransactionSupportAsString()Returns thetransaction-supportelementConnectionFactoryResourceType<T>id(String id)Sets theidattributeConnectionFactoryResourceType<T>maxPoolSize(Integer maxPoolSize)Sets themax-pool-sizeelementConnectionFactoryResourceType<T>minPoolSize(Integer minPoolSize)Sets themin-pool-sizeelementConnectionFactoryResourceType<T>name(String name)Sets thenameelementConnectionFactoryResourceType<T>removeAllProperty()Removes allpropertyelementsConnectionFactoryResourceType<T>removeClassName()Removes theclass-nameelementConnectionFactoryResourceType<T>removeDescription()Removes thedescriptionelementConnectionFactoryResourceType<T>removeId()Removes theidattributeConnectionFactoryResourceType<T>removeMaxPoolSize()Removes themax-pool-sizeelementConnectionFactoryResourceType<T>removeMinPoolSize()Removes themin-pool-sizeelementConnectionFactoryResourceType<T>removeName()Removes thenameelementConnectionFactoryResourceType<T>removeResourceAdapter()Removes theresource-adapterelementConnectionFactoryResourceType<T>removeTransactionSupport()Removes thetransaction-supportattributeConnectionFactoryResourceType<T>resourceAdapter(String resourceAdapter)Sets theresource-adapterelementConnectionFactoryResourceType<T>transactionSupport(String transactionSupport)Sets thetransaction-supportelementConnectionFactoryResourceType<T>transactionSupport(TransactionSupportType transactionSupport)Sets thetransaction-supportelementTup()
-
-
-
Method Detail
-
description
public ConnectionFactoryResourceType<T> description(String description)
Sets thedescriptionelement- Specified by:
descriptionin interfaceConnectionFactoryResourceType<T>- Parameters:
description- the value for the elementdescription- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getDescription
public String getDescription()
Returns thedescriptionelement- Specified by:
getDescriptionin interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
description
-
removeDescription
public ConnectionFactoryResourceType<T> removeDescription()
Removes thedescriptionelement- Specified by:
removeDescriptionin interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
name
public ConnectionFactoryResourceType<T> name(String name)
Sets thenameelement- Specified by:
namein interfaceConnectionFactoryResourceType<T>- Parameters:
name- the value for the elementname- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getName
public String getName()
Returns thenameelement- Specified by:
getNamein interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
name
-
removeName
public ConnectionFactoryResourceType<T> removeName()
Removes thenameelement- Specified by:
removeNamein interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
className
public ConnectionFactoryResourceType<T> className(String className)
Sets theclass-nameelement- Specified by:
classNamein interfaceConnectionFactoryResourceType<T>- Parameters:
className- the value for the elementclass-name- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getClassName
public String getClassName()
Returns theclass-nameelement- Specified by:
getClassNamein interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
class-name
-
removeClassName
public ConnectionFactoryResourceType<T> removeClassName()
Removes theclass-nameelement- Specified by:
removeClassNamein interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
resourceAdapter
public ConnectionFactoryResourceType<T> resourceAdapter(String resourceAdapter)
Sets theresource-adapterelement- Specified by:
resourceAdapterin interfaceConnectionFactoryResourceType<T>- Parameters:
resourceAdapter- the value for the elementresource-adapter- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getResourceAdapter
public String getResourceAdapter()
Returns theresource-adapterelement- Specified by:
getResourceAdapterin interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
resource-adapter
-
removeResourceAdapter
public ConnectionFactoryResourceType<T> removeResourceAdapter()
Removes theresource-adapterelement- Specified by:
removeResourceAdapterin interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
maxPoolSize
public ConnectionFactoryResourceType<T> maxPoolSize(Integer maxPoolSize)
Sets themax-pool-sizeelement- Specified by:
maxPoolSizein interfaceConnectionFactoryResourceType<T>- Parameters:
maxPoolSize- the value for the elementmax-pool-size- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getMaxPoolSize
public Integer getMaxPoolSize()
Returns themax-pool-sizeelement- Specified by:
getMaxPoolSizein interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
max-pool-size
-
removeMaxPoolSize
public ConnectionFactoryResourceType<T> removeMaxPoolSize()
Removes themax-pool-sizeelement- Specified by:
removeMaxPoolSizein interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
minPoolSize
public ConnectionFactoryResourceType<T> minPoolSize(Integer minPoolSize)
Sets themin-pool-sizeelement- Specified by:
minPoolSizein interfaceConnectionFactoryResourceType<T>- Parameters:
minPoolSize- the value for the elementmin-pool-size- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getMinPoolSize
public Integer getMinPoolSize()
Returns themin-pool-sizeelement- Specified by:
getMinPoolSizein interfaceConnectionFactoryResourceType<T>- Returns:
- the node defined for the element
min-pool-size
-
removeMinPoolSize
public ConnectionFactoryResourceType<T> removeMinPoolSize()
Removes themin-pool-sizeelement- Specified by:
removeMinPoolSizein interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
transactionSupport
public ConnectionFactoryResourceType<T> transactionSupport(TransactionSupportType transactionSupport)
Sets thetransaction-supportelement- Specified by:
transactionSupportin interfaceConnectionFactoryResourceType<T>- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
ConnectionFactoryResourceType
-
transactionSupport
public ConnectionFactoryResourceType<T> transactionSupport(String transactionSupport)
Sets thetransaction-supportelement- Specified by:
transactionSupportin interfaceConnectionFactoryResourceType<T>- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getTransactionSupport
public TransactionSupportType getTransactionSupport()
Returns thetransaction-supportelement- Specified by:
getTransactionSupportin interfaceConnectionFactoryResourceType<T>- Returns:
- the value found for the element
transaction-support
-
getTransactionSupportAsString
public String getTransactionSupportAsString()
Returns thetransaction-supportelement- Specified by:
getTransactionSupportAsStringin interfaceConnectionFactoryResourceType<T>- Returns:
- the value found for the element
transaction-support
-
removeTransactionSupport
public ConnectionFactoryResourceType<T> removeTransactionSupport()
Removes thetransaction-supportattribute- Specified by:
removeTransactionSupportin interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getOrCreateProperty
public PropertyType<ConnectionFactoryResourceType<T>> getOrCreateProperty()
If not already created, a newpropertyelement will be created and returned. Otherwise, the first existingpropertyelement will be returned.- Specified by:
getOrCreatePropertyin interfaceConnectionFactoryResourceType<T>- Returns:
- the instance defined for the element
property
-
createProperty
public PropertyType<ConnectionFactoryResourceType<T>> createProperty()
Creates a newpropertyelement- Specified by:
createPropertyin interfaceConnectionFactoryResourceType<T>- Returns:
- the new created instance of
PropertyType>
-
getAllProperty
public List<PropertyType<ConnectionFactoryResourceType<T>>> getAllProperty()
Returns allpropertyelements- Specified by:
getAllPropertyin interfaceConnectionFactoryResourceType<T>- Returns:
- list of
property
-
removeAllProperty
public ConnectionFactoryResourceType<T> removeAllProperty()
Removes allpropertyelements- Specified by:
removeAllPropertyin interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
PropertyType>
-
id
public ConnectionFactoryResourceType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceConnectionFactoryResourceType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ConnectionFactoryResourceType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceConnectionFactoryResourceType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ConnectionFactoryResourceType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceConnectionFactoryResourceType<T>- Returns:
- the current instance of
ConnectionFactoryResourceType
-
-