org.jboss.resourceadapters.impl
Class ResourceAdapterTypeImpl<T>

java.lang.Object
  extended by org.jboss.resourceadapters.impl.ResourceAdapterTypeImpl<T>
All Implemented Interfaces:
ResourceAdapterType<T>, Child<T>

public class ResourceAdapterTypeImpl<T>
extends Object
implements Child<T>, ResourceAdapterType<T>

This class implements the resource-adapterType xsd type

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

Constructor Summary
ResourceAdapterTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
           
ResourceAdapterTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node, org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
           
 
Method Summary
 ResourceAdapterType<T> archive(String archive)
          Sets the archive element
 ResourceAdapterType<T> bootstrapContext(String bootstrapContext)
          Sets the bootstrap-context element
 ConfigPropertyType<ResourceAdapterType<T>> createConfigProperty()
          Creates a new config-property element
 List<ConfigPropertyType<ResourceAdapterType<T>>> getAllConfigProperty()
          Returns all config-property elements
 String getArchive()
          Returns the archive element
 String getBootstrapContext()
          Returns the bootstrap-context element
 AdminObjectsType<ResourceAdapterType<T>> getOrCreateAdminObjects()
          If not already created, a new admin-objects element with the given value will be created.
 BeanValidationGroupsType<ResourceAdapterType<T>> getOrCreateBeanValidationGroups()
          If not already created, a new bean-validation-groups element with the given value will be created.
 ConfigPropertyType<ResourceAdapterType<T>> getOrCreateConfigProperty()
          If not already created, a new config-property element will be created and returned.
 ConnectionDefinitionsType<ResourceAdapterType<T>> getOrCreateConnectionDefinitions()
          If not already created, a new connection-definitions element with the given value will be created.
 TransactionSupportType getTransactionSupport()
          Returns the transaction-support element
 String getTransactionSupportAsString()
          Returns the transaction-support element
 ResourceAdapterType<T> removeAdminObjects()
          Removes the admin-objects element
 ResourceAdapterType<T> removeAllConfigProperty()
          Removes all config-property elements
 ResourceAdapterType<T> removeArchive()
          Removes the archive element
 ResourceAdapterType<T> removeBeanValidationGroups()
          Removes the bean-validation-groups element
 ResourceAdapterType<T> removeBootstrapContext()
          Removes the bootstrap-context element
 ResourceAdapterType<T> removeConnectionDefinitions()
          Removes the connection-definitions element
 ResourceAdapterType<T> removeTransactionSupport()
          Removes the transaction-support attribute
 ResourceAdapterType<T> transactionSupport(String transactionSupport)
          Sets the transaction-support element
 ResourceAdapterType<T> transactionSupport(TransactionSupportType transactionSupport)
          Sets the transaction-support element
 T up()
          Returns the parent of this Child
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceAdapterTypeImpl

public ResourceAdapterTypeImpl(T t,
                               String nodeName,
                               org.jboss.shrinkwrap.descriptor.spi.node.Node node)

ResourceAdapterTypeImpl

public ResourceAdapterTypeImpl(T t,
                               String nodeName,
                               org.jboss.shrinkwrap.descriptor.spi.node.Node node,
                               org.jboss.shrinkwrap.descriptor.spi.node.Node childNode)
Method Detail

up

public T up()
Description copied from interface: Child
Returns the parent of this Child

Specified by:
up in interface Child<T>
Returns:
The parent of this Child

archive

public ResourceAdapterType<T> archive(String archive)
Sets the archive element

Specified by:
archive in interface ResourceAdapterType<T>
Parameters:
archive - the value for the element archive
Returns:
the current instance of ResourceAdapterType

getArchive

public String getArchive()
Returns the archive element

Specified by:
getArchive in interface ResourceAdapterType<T>
Returns:
the node defined for the element archive

removeArchive

public ResourceAdapterType<T> removeArchive()
Removes the archive element

Specified by:
removeArchive in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType

getOrCreateBeanValidationGroups

public BeanValidationGroupsType<ResourceAdapterType<T>> 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 ResourceAdapterType<T>
Returns:
a new or existing instance of BeanValidationGroupsType>

removeBeanValidationGroups

public ResourceAdapterType<T> removeBeanValidationGroups()
Removes the bean-validation-groups element

Specified by:
removeBeanValidationGroups in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType

bootstrapContext

public ResourceAdapterType<T> bootstrapContext(String bootstrapContext)
Sets the bootstrap-context element

Specified by:
bootstrapContext in interface ResourceAdapterType<T>
Parameters:
bootstrapContext - the value for the element bootstrap-context
Returns:
the current instance of ResourceAdapterType

getBootstrapContext

public String getBootstrapContext()
Returns the bootstrap-context element

Specified by:
getBootstrapContext in interface ResourceAdapterType<T>
Returns:
the node defined for the element bootstrap-context

removeBootstrapContext

public ResourceAdapterType<T> removeBootstrapContext()
Removes the bootstrap-context element

Specified by:
removeBootstrapContext in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType

getOrCreateConfigProperty

public ConfigPropertyType<ResourceAdapterType<T>> 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 ResourceAdapterType<T>
Returns:
the instance defined for the element config-property

createConfigProperty

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

Specified by:
createConfigProperty in interface ResourceAdapterType<T>
Returns:
the new created instance of ConfigPropertyType>

getAllConfigProperty

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

Specified by:
getAllConfigProperty in interface ResourceAdapterType<T>
Returns:
list of config-property

removeAllConfigProperty

public ResourceAdapterType<T> removeAllConfigProperty()
Removes all config-property elements

Specified by:
removeAllConfigProperty in interface ResourceAdapterType<T>
Returns:
the current instance of ConfigPropertyType>

transactionSupport

public ResourceAdapterType<T> transactionSupport(TransactionSupportType transactionSupport)
Sets the transaction-support element

Specified by:
transactionSupport in interface ResourceAdapterType<T>
Parameters:
transactionSupport - the value for the element transaction-support
Returns:
the current instance of ResourceAdapterType

transactionSupport

public ResourceAdapterType<T> transactionSupport(String transactionSupport)
Sets the transaction-support element

Specified by:
transactionSupport in interface ResourceAdapterType<T>
Parameters:
transactionSupport - the value for the element transaction-support
Returns:
the current instance of ResourceAdapterType

getTransactionSupport

public TransactionSupportType getTransactionSupport()
Returns the transaction-support element

Specified by:
getTransactionSupport in interface ResourceAdapterType<T>
Returns:
the value found for the element transaction-support

getTransactionSupportAsString

public String getTransactionSupportAsString()
Returns the transaction-support element

Specified by:
getTransactionSupportAsString in interface ResourceAdapterType<T>
Returns:
the value found for the element transaction-support

removeTransactionSupport

public ResourceAdapterType<T> removeTransactionSupport()
Removes the transaction-support attribute

Specified by:
removeTransactionSupport in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType

getOrCreateConnectionDefinitions

public ConnectionDefinitionsType<ResourceAdapterType<T>> 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 ResourceAdapterType<T>
Returns:
a new or existing instance of ConnectionDefinitionsType>

removeConnectionDefinitions

public ResourceAdapterType<T> removeConnectionDefinitions()
Removes the connection-definitions element

Specified by:
removeConnectionDefinitions in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType

getOrCreateAdminObjects

public AdminObjectsType<ResourceAdapterType<T>> 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 ResourceAdapterType<T>
Returns:
a new or existing instance of AdminObjectsType>

removeAdminObjects

public ResourceAdapterType<T> removeAdminObjects()
Removes the admin-objects element

Specified by:
removeAdminObjects in interface ResourceAdapterType<T>
Returns:
the current instance of ResourceAdapterType


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