Class ResourceadapterTypeImpl<T>
java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.connector16.ResourceadapterTypeImpl<T>
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ResourceadapterType<T>
public class ResourceadapterTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceadapterType<T>
This class implements the
resourceadapterType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionResourceadapterTypeImpl(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
Modifier and TypeMethodDescriptionCreates a newadminobjectelementCreates a newconfig-propertyelementCreates a newsecurity-permissionelementReturns alladminobjectelementsReturns allconfig-propertyelementsReturns allsecurity-permissionelementsgetId()Returns theidattributeIf not already created, a newadminobjectelement will be created and returned.If not already created, a newconfig-propertyelement will be created and returned.If not already created, a newinbound-resourceadapterelement with the given value will be created.If not already created, a newoutbound-resourceadapterelement with the given value will be created.If not already created, a newsecurity-permissionelement will be created and returned.Returns theresourceadapter-classelementSets theidattributeRemoves alladminobjectelementsRemoves allconfig-propertyelementsRemoves allsecurity-permissionelementsremoveId()Removes theidattributeRemoves theinbound-resourceadapterelementRemoves theoutbound-resourceadapterelementRemoves theresourceadapter-classelementresourceadapterClass(String resourceadapterClass) Sets theresourceadapter-classelementup()
-
Constructor Details
-
ResourceadapterTypeImpl
-
ResourceadapterTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
resourceadapterClass
Sets theresourceadapter-classelement- Specified by:
resourceadapterClassin interfaceResourceadapterType<T>- Parameters:
resourceadapterClass- the value for the elementresourceadapter-class- Returns:
- the current instance of
ResourceadapterType
-
getResourceadapterClass
Returns theresourceadapter-classelement- Specified by:
getResourceadapterClassin interfaceResourceadapterType<T>- Returns:
- the node defined for the element
resourceadapter-class
-
removeResourceadapterClass
Removes theresourceadapter-classelement- Specified by:
removeResourceadapterClassin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateConfigProperty
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Specified by:
getOrCreateConfigPropertyin interfaceResourceadapterType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceResourceadapterType<T>- Returns:
- the new created instance of
ConfigPropertyType<ResourceadapterType>
-
getAllConfigProperty
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceResourceadapterType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceResourceadapterType<T>- Returns:
- the current instance of
ConfigPropertyType<ResourceadapterType>
-
getOrCreateOutboundResourceadapter
If not already created, a newoutbound-resourceadapterelement with the given value will be created. Otherwise, the existingoutbound-resourceadapterelement will be returned.- Specified by:
getOrCreateOutboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- a new or existing instance of
OutboundResourceadapterType<ResourceadapterType>
-
removeOutboundResourceadapter
Removes theoutbound-resourceadapterelement- Specified by:
removeOutboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateInboundResourceadapter
If not already created, a newinbound-resourceadapterelement with the given value will be created. Otherwise, the existinginbound-resourceadapterelement will be returned.- Specified by:
getOrCreateInboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- a new or existing instance of
InboundResourceadapterType<ResourceadapterType>
-
removeInboundResourceadapter
Removes theinbound-resourceadapterelement- Specified by:
removeInboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateAdminobject
If not already created, a newadminobjectelement will be created and returned. Otherwise, the first existingadminobjectelement will be returned.- Specified by:
getOrCreateAdminobjectin interfaceResourceadapterType<T>- Returns:
- the instance defined for the element
adminobject
-
createAdminobject
Creates a newadminobjectelement- Specified by:
createAdminobjectin interfaceResourceadapterType<T>- Returns:
- the new created instance of
AdminobjectType<ResourceadapterType>
-
getAllAdminobject
Returns alladminobjectelements- Specified by:
getAllAdminobjectin interfaceResourceadapterType<T>- Returns:
- list of
adminobject
-
removeAllAdminobject
Removes alladminobjectelements- Specified by:
removeAllAdminobjectin interfaceResourceadapterType<T>- Returns:
- the current instance of
AdminobjectType<ResourceadapterType>
-
getOrCreateSecurityPermission
If not already created, a newsecurity-permissionelement will be created and returned. Otherwise, the first existingsecurity-permissionelement will be returned.- Specified by:
getOrCreateSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- the instance defined for the element
security-permission
-
createSecurityPermission
Creates a newsecurity-permissionelement- Specified by:
createSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- the new created instance of
SecurityPermissionType<ResourceadapterType>
-
getAllSecurityPermission
Returns allsecurity-permissionelements- Specified by:
getAllSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- list of
security-permission
-
removeAllSecurityPermission
Removes allsecurity-permissionelements- Specified by:
removeAllSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- the current instance of
SecurityPermissionType<ResourceadapterType>
-
id
Sets theidattribute- Specified by:
idin interfaceResourceadapterType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceadapterType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceResourceadapterType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-