org.jboss.ironjacamar.impl
Class IronjacamarDescriptorImpl

java.lang.Object
  extended by org.jboss.shrinkwrap.descriptor.spi.DescriptorImplBase<org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor>
      extended by org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
          extended by org.jboss.ironjacamar.impl.IronjacamarDescriptorImpl
All Implemented Interfaces:
IronjacamarDescriptor, Descriptor, DescriptorNamespace<IronjacamarDescriptor>, org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor

public class IronjacamarDescriptorImpl
extends org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptorImplBase
implements DescriptorNamespace<IronjacamarDescriptor>, IronjacamarDescriptor

This deployment descriptor provides the functionalities as described in the specification

Example:

IronjacamarDescriptor descriptor = Descriptors.create(IronjacamarDescriptor.class);

Since:
Generation date :2013-01-26T19:27:02.583+01:00
Author:
Ralf Battenfeld, Andrew Lee Rubinger

Constructor Summary
IronjacamarDescriptorImpl(String descriptorName)
           
IronjacamarDescriptorImpl(String descriptorName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
 
Method Summary
 IronjacamarDescriptor addDefaultNamespaces()
          Adds the default namespaces as defined in the specification
 IronjacamarDescriptor addNamespace(String name, String value)
          Adds a new namespace
 IronjacamarDescriptor bootstrapContext(String bootstrapContext)
          Sets the bootstrap-context element
 ConfigPropertyType<IronjacamarDescriptor> createConfigProperty()
          Creates a new config-property element
 List<ConfigPropertyType<IronjacamarDescriptor>> getAllConfigProperty()
          Returns all config-property elements
 String getBootstrapContext()
          Returns the bootstrap-context element
 List<String> getNamespaces()
          Returns all defined namespaces.
 AdminObjectsType<IronjacamarDescriptor> getOrCreateAdminObjects()
          If not already created, a new admin-objects element with the given value will be created.
 BeanValidationGroupsType<IronjacamarDescriptor> getOrCreateBeanValidationGroups()
          If not already created, a new bean-validation-groups element with the given value will be created.
 ConfigPropertyType<IronjacamarDescriptor> getOrCreateConfigProperty()
          If not already created, a new config-property element will be created and returned.
 ConnectionDefinitionsType<IronjacamarDescriptor> getOrCreateConnectionDefinitions()
          If not already created, a new connection-definitions element with the given value will be created.
 org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
           
 TransactionSupportType getTransactionSupport()
          Returns the transaction-support element
 String getTransactionSupportAsString()
          Returns the transaction-support element
 IronjacamarDescriptor removeAdminObjects()
          Removes the admin-objects element
 IronjacamarDescriptor removeAllConfigProperty()
          Removes all config-property elements
 IronjacamarDescriptor removeAllNamespaces()
          Removes all existing namespaces.
 IronjacamarDescriptor removeBeanValidationGroups()
          Removes the bean-validation-groups element
 IronjacamarDescriptor removeBootstrapContext()
          Removes the bootstrap-context element
 IronjacamarDescriptor removeConnectionDefinitions()
          Removes the connection-definitions element
 IronjacamarDescriptor removeTransactionSupport()
          Removes the transaction-support attribute
 IronjacamarDescriptor transactionSupport(String transactionSupport)
          Sets the transaction-support element
 IronjacamarDescriptor transactionSupport(TransactionSupportType transactionSupport)
          Sets the transaction-support element
 
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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.shrinkwrap.descriptor.api.Descriptor
exportAsString, exportTo, getDescriptorName
 

Constructor Detail

IronjacamarDescriptorImpl

public IronjacamarDescriptorImpl(String descriptorName)

IronjacamarDescriptorImpl

public IronjacamarDescriptorImpl(String descriptorName,
                                 org.jboss.shrinkwrap.descriptor.spi.node.Node node)
Method Detail

getRootNode

public org.jboss.shrinkwrap.descriptor.spi.node.Node getRootNode()
Specified by:
getRootNode in interface org.jboss.shrinkwrap.descriptor.spi.node.NodeDescriptor

addDefaultNamespaces

public IronjacamarDescriptor addDefaultNamespaces()
Adds the default namespaces as defined in the specification

Specified by:
addDefaultNamespaces in interface DescriptorNamespace<IronjacamarDescriptor>
Returns:
the current instance of IronjacamarDescriptor

addNamespace

public IronjacamarDescriptor addNamespace(String name,
                                          String value)
Adds a new namespace

Specified by:
addNamespace in interface DescriptorNamespace<IronjacamarDescriptor>
Parameters:
name - the name of the namespace
value - the value of the namespace
Returns:
the current instance of IronjacamarDescriptor

getNamespaces

public List<String> getNamespaces()
Returns all defined namespaces.

Specified by:
getNamespaces in interface DescriptorNamespace<IronjacamarDescriptor>
Returns:
all defined namespaces

removeAllNamespaces

public IronjacamarDescriptor removeAllNamespaces()
Removes all existing namespaces.

Specified by:
removeAllNamespaces in interface DescriptorNamespace<IronjacamarDescriptor>
Returns:
the current instance of IronjacamarDescriptor

getOrCreateBeanValidationGroups

public BeanValidationGroupsType<IronjacamarDescriptor> getOrCreateBeanValidationGroups()
If not already created, a new bean-validation-groups element with the given value will be created. Otherwise, the existing bean-validation-groups element will be returned.

Specified by:
getOrCreateBeanValidationGroups in interface IronjacamarDescriptor
Returns:
a new or existing instance of BeanValidationGroupsType

removeBeanValidationGroups

public IronjacamarDescriptor removeBeanValidationGroups()
Removes the bean-validation-groups element

Specified by:
removeBeanValidationGroups in interface IronjacamarDescriptor
Returns:
the current instance of IronjacamarDescriptor

bootstrapContext

public IronjacamarDescriptor bootstrapContext(String bootstrapContext)
Sets the bootstrap-context element

Specified by:
bootstrapContext in interface IronjacamarDescriptor
Parameters:
bootstrapContext - the value for the element bootstrap-context
Returns:
the current instance of IronjacamarDescriptor

getBootstrapContext

public String getBootstrapContext()
Returns the bootstrap-context element

Specified by:
getBootstrapContext in interface IronjacamarDescriptor
Returns:
the node defined for the element bootstrap-context

removeBootstrapContext

public IronjacamarDescriptor removeBootstrapContext()
Removes the bootstrap-context element

Specified by:
removeBootstrapContext in interface IronjacamarDescriptor
Returns:
the current instance of IronjacamarDescriptor

getOrCreateConfigProperty

public ConfigPropertyType<IronjacamarDescriptor> getOrCreateConfigProperty()
If not already created, a new config-property element will be created and returned. Otherwise, the first existing config-property element will be returned.

Specified by:
getOrCreateConfigProperty in interface IronjacamarDescriptor
Returns:
the instance defined for the element config-property

createConfigProperty

public ConfigPropertyType<IronjacamarDescriptor> createConfigProperty()
Creates a new config-property element

Specified by:
createConfigProperty in interface IronjacamarDescriptor
Returns:
the new created instance of ConfigPropertyType

getAllConfigProperty

public List<ConfigPropertyType<IronjacamarDescriptor>> getAllConfigProperty()
Returns all config-property elements

Specified by:
getAllConfigProperty in interface IronjacamarDescriptor
Returns:
list of config-property

removeAllConfigProperty

public IronjacamarDescriptor removeAllConfigProperty()
Removes all config-property elements

Specified by:
removeAllConfigProperty in interface IronjacamarDescriptor
Returns:
the current instance of ConfigPropertyType

transactionSupport

public IronjacamarDescriptor transactionSupport(TransactionSupportType transactionSupport)
Sets the transaction-support element

Specified by:
transactionSupport in interface IronjacamarDescriptor
Parameters:
transactionSupport - the value for the element transaction-support
Returns:
the current instance of IronjacamarDescriptor

transactionSupport

public IronjacamarDescriptor transactionSupport(String transactionSupport)
Sets the transaction-support element

Specified by:
transactionSupport in interface IronjacamarDescriptor
Parameters:
transactionSupport - the value for the element transaction-support
Returns:
the current instance of IronjacamarDescriptor

getTransactionSupport

public TransactionSupportType getTransactionSupport()
Returns the transaction-support element

Specified by:
getTransactionSupport in interface IronjacamarDescriptor
Returns:
the value found for the element transaction-support

getTransactionSupportAsString

public String getTransactionSupportAsString()
Returns the transaction-support element

Specified by:
getTransactionSupportAsString in interface IronjacamarDescriptor
Returns:
the value found for the element transaction-support

removeTransactionSupport

public IronjacamarDescriptor removeTransactionSupport()
Removes the transaction-support attribute

Specified by:
removeTransactionSupport in interface IronjacamarDescriptor
Returns:
the current instance of IronjacamarDescriptor

getOrCreateConnectionDefinitions

public ConnectionDefinitionsType<IronjacamarDescriptor> getOrCreateConnectionDefinitions()
If not already created, a new connection-definitions element with the given value will be created. Otherwise, the existing connection-definitions element will be returned.

Specified by:
getOrCreateConnectionDefinitions in interface IronjacamarDescriptor
Returns:
a new or existing instance of ConnectionDefinitionsType

removeConnectionDefinitions

public IronjacamarDescriptor removeConnectionDefinitions()
Removes the connection-definitions element

Specified by:
removeConnectionDefinitions in interface IronjacamarDescriptor
Returns:
the current instance of IronjacamarDescriptor

getOrCreateAdminObjects

public AdminObjectsType<IronjacamarDescriptor> getOrCreateAdminObjects()
If not already created, a new admin-objects element with the given value will be created. Otherwise, the existing admin-objects element will be returned.

Specified by:
getOrCreateAdminObjects in interface IronjacamarDescriptor
Returns:
a new or existing instance of AdminObjectsType

removeAdminObjects

public IronjacamarDescriptor removeAdminObjects()
Removes the admin-objects element

Specified by:
removeAdminObjects in interface IronjacamarDescriptor
Returns:
the current instance of IronjacamarDescriptor


Copyright © 2013 JBoss, a division of Red Hat, Inc.. All Rights Reserved.