Class IronjacamarDescriptorImpl
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
-
- org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
-
- org.jboss.jca.embedded.dsl.ironjacamar13.impl.IronjacamarDescriptorImpl
-
- All Implemented Interfaces:
IronjacamarDescriptor,org.jboss.shrinkwrap.descriptor.api.Descriptor,org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>,org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
public class IronjacamarDescriptorImpl extends org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase implements org.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>, IronjacamarDescriptor
This deployment descriptor provides the functionalities as described in the specification
Example:
IronjacamarDescriptor descriptor = Descriptors.create(IronjacamarDescriptor.class);
-
-
Constructor Summary
Constructors Constructor Description IronjacamarDescriptorImpl(String descriptorName)IronjacamarDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IronjacamarDescriptoraddDefaultNamespaces()Adds the default namespaces as defined in the specificationIronjacamarDescriptoraddNamespace(String name, String value)Adds a new namespaceIronjacamarDescriptorbootstrapContext(String bootstrapContext)Sets thebootstrap-contextelementConfigPropertyType<IronjacamarDescriptor>createConfigProperty()Creates a newconfig-propertyelementList<ConfigPropertyType<IronjacamarDescriptor>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetBootstrapContext()Returns thebootstrap-contextelementList<String>getNamespaces()Returns all defined namespaces.AdminObjectsType<IronjacamarDescriptor>getOrCreateAdminObjects()If not already created, a newadmin-objectselement with the given value will be created.BeanValidationGroupsType<IronjacamarDescriptor>getOrCreateBeanValidationGroups()If not already created, a newbean-validation-groupselement with the given value will be created.ConfigPropertyType<IronjacamarDescriptor>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.ConnectionDefinitionsType<IronjacamarDescriptor>getOrCreateConnectionDefinitions()If not already created, a newconnection-definitionselement with the given value will be created.WorkmanagerType<IronjacamarDescriptor>getOrCreateWorkmanager()If not already created, a newworkmanagerelement with the given value will be created.org.jboss.shrinkwrap.descriptor.spi.node.NodegetRootNode()TransactionSupportTypegetTransactionSupport()Returns thetransaction-supportelementStringgetTransactionSupportAsString()Returns thetransaction-supportelementIronjacamarDescriptorremoveAdminObjects()Removes theadmin-objectselementIronjacamarDescriptorremoveAllConfigProperty()Removes allconfig-propertyelementsIronjacamarDescriptorremoveAllNamespaces()Removes all existing namespaces.IronjacamarDescriptorremoveBeanValidationGroups()Removes thebean-validation-groupselementIronjacamarDescriptorremoveBootstrapContext()Removes thebootstrap-contextelementIronjacamarDescriptorremoveConnectionDefinitions()Removes theconnection-definitionselementIronjacamarDescriptorremoveTransactionSupport()Removes thetransaction-supportattributeIronjacamarDescriptorremoveWorkmanager()Removes theworkmanagerelementIronjacamarDescriptortransactionSupport(String transactionSupport)Sets thetransaction-supportelementIronjacamarDescriptortransactionSupport(TransactionSupportType transactionSupport)Sets thetransaction-supportelement-
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
exportTo, getExporter
-
Methods inherited from class org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase
exportAsString, getDescriptorName
-
-
-
-
Method Detail
-
getRootNode
public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
- Specified by:
getRootNodein interfaceorg.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor
-
addDefaultNamespaces
public IronjacamarDescriptor addDefaultNamespaces()
Adds the default namespaces as defined in the specification- Specified by:
addDefaultNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>- Returns:
- the current instance of
IronjacamarDescriptor
-
addNamespace
public IronjacamarDescriptor addNamespace(String name, String value)
Adds a new namespace- Specified by:
addNamespacein interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>- Returns:
- the current instance of
IronjacamarDescriptor
-
getNamespaces
public List<String> getNamespaces()
Returns all defined namespaces.- Specified by:
getNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>- Returns:
- all defined namespaces
-
removeAllNamespaces
public IronjacamarDescriptor removeAllNamespaces()
Removes all existing namespaces.- Specified by:
removeAllNamespacesin interfaceorg.jboss.shrinkwrap.descriptor.api.DescriptorNamespace<IronjacamarDescriptor>- Returns:
- the current instance of
IronjacamarDescriptor
-
getOrCreateBeanValidationGroups
public BeanValidationGroupsType<IronjacamarDescriptor> getOrCreateBeanValidationGroups()
If not already created, a newbean-validation-groupselement with the given value will be created. Otherwise, the existingbean-validation-groupselement will be returned.- Specified by:
getOrCreateBeanValidationGroupsin interfaceIronjacamarDescriptor- Returns:
- a new or existing instance of
BeanValidationGroupsType
-
removeBeanValidationGroups
public IronjacamarDescriptor removeBeanValidationGroups()
Removes thebean-validation-groupselement- Specified by:
removeBeanValidationGroupsin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
bootstrapContext
public IronjacamarDescriptor bootstrapContext(String bootstrapContext)
Sets thebootstrap-contextelement- Specified by:
bootstrapContextin interfaceIronjacamarDescriptor- Parameters:
bootstrapContext- the value for the elementbootstrap-context- Returns:
- the current instance of
IronjacamarDescriptor
-
getBootstrapContext
public String getBootstrapContext()
Returns thebootstrap-contextelement- Specified by:
getBootstrapContextin interfaceIronjacamarDescriptor- Returns:
- the node defined for the element
bootstrap-context
-
removeBootstrapContext
public IronjacamarDescriptor removeBootstrapContext()
Removes thebootstrap-contextelement- Specified by:
removeBootstrapContextin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
getOrCreateConfigProperty
public ConfigPropertyType<IronjacamarDescriptor> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Specified by:
getOrCreateConfigPropertyin interfaceIronjacamarDescriptor- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
public ConfigPropertyType<IronjacamarDescriptor> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceIronjacamarDescriptor- Returns:
- the new created instance of
ConfigPropertyType
-
getAllConfigProperty
public List<ConfigPropertyType<IronjacamarDescriptor>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceIronjacamarDescriptor- Returns:
- list of
config-property
-
removeAllConfigProperty
public IronjacamarDescriptor removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceIronjacamarDescriptor- Returns:
- the current instance of
ConfigPropertyType
-
transactionSupport
public IronjacamarDescriptor transactionSupport(TransactionSupportType transactionSupport)
Sets thetransaction-supportelement- Specified by:
transactionSupportin interfaceIronjacamarDescriptor- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
IronjacamarDescriptor
-
transactionSupport
public IronjacamarDescriptor transactionSupport(String transactionSupport)
Sets thetransaction-supportelement- Specified by:
transactionSupportin interfaceIronjacamarDescriptor- Parameters:
transactionSupport- the value for the elementtransaction-support- Returns:
- the current instance of
IronjacamarDescriptor
-
getTransactionSupport
public TransactionSupportType getTransactionSupport()
Returns thetransaction-supportelement- Specified by:
getTransactionSupportin interfaceIronjacamarDescriptor- Returns:
- the value found for the element
transaction-support
-
getTransactionSupportAsString
public String getTransactionSupportAsString()
Returns thetransaction-supportelement- Specified by:
getTransactionSupportAsStringin interfaceIronjacamarDescriptor- Returns:
- the value found for the element
transaction-support
-
removeTransactionSupport
public IronjacamarDescriptor removeTransactionSupport()
Removes thetransaction-supportattribute- Specified by:
removeTransactionSupportin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
getOrCreateWorkmanager
public WorkmanagerType<IronjacamarDescriptor> getOrCreateWorkmanager()
If not already created, a newworkmanagerelement with the given value will be created. Otherwise, the existingworkmanagerelement will be returned.- Specified by:
getOrCreateWorkmanagerin interfaceIronjacamarDescriptor- Returns:
- a new or existing instance of
WorkmanagerType
-
removeWorkmanager
public IronjacamarDescriptor removeWorkmanager()
Removes theworkmanagerelement- Specified by:
removeWorkmanagerin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
getOrCreateConnectionDefinitions
public ConnectionDefinitionsType<IronjacamarDescriptor> getOrCreateConnectionDefinitions()
If not already created, a newconnection-definitionselement with the given value will be created. Otherwise, the existingconnection-definitionselement will be returned.- Specified by:
getOrCreateConnectionDefinitionsin interfaceIronjacamarDescriptor- Returns:
- a new or existing instance of
ConnectionDefinitionsType
-
removeConnectionDefinitions
public IronjacamarDescriptor removeConnectionDefinitions()
Removes theconnection-definitionselement- Specified by:
removeConnectionDefinitionsin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
getOrCreateAdminObjects
public AdminObjectsType<IronjacamarDescriptor> getOrCreateAdminObjects()
If not already created, a newadmin-objectselement with the given value will be created. Otherwise, the existingadmin-objectselement will be returned.- Specified by:
getOrCreateAdminObjectsin interfaceIronjacamarDescriptor- Returns:
- a new or existing instance of
AdminObjectsType
-
removeAdminObjects
public IronjacamarDescriptor removeAdminObjects()
Removes theadmin-objectselement- Specified by:
removeAdminObjectsin interfaceIronjacamarDescriptor- Returns:
- the current instance of
IronjacamarDescriptor
-
-