Class ResourceadapterTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector15.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 theresourceadapterTypexsd type
-
-
Constructor Summary
Constructors Constructor Description 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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AdminobjectType<ResourceadapterType<T>>createAdminobject()Creates a newadminobjectelementConfigPropertyType<ResourceadapterType<T>>createConfigProperty()Creates a newconfig-propertyelementSecurityPermissionType<ResourceadapterType<T>>createSecurityPermission()Creates a newsecurity-permissionelementList<AdminobjectType<ResourceadapterType<T>>>getAllAdminobject()Returns alladminobjectelementsList<ConfigPropertyType<ResourceadapterType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsList<SecurityPermissionType<ResourceadapterType<T>>>getAllSecurityPermission()Returns allsecurity-permissionelementsStringgetId()Returns theidattributeAdminobjectType<ResourceadapterType<T>>getOrCreateAdminobject()If not already created, a newadminobjectelement will be created and returned.ConfigPropertyType<ResourceadapterType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.InboundResourceadapterType<ResourceadapterType<T>>getOrCreateInboundResourceadapter()If not already created, a newinbound-resourceadapterelement with the given value will be created.OutboundResourceadapterType<ResourceadapterType<T>>getOrCreateOutboundResourceadapter()If not already created, a newoutbound-resourceadapterelement with the given value will be created.SecurityPermissionType<ResourceadapterType<T>>getOrCreateSecurityPermission()If not already created, a newsecurity-permissionelement will be created and returned.StringgetResourceadapterClass()Returns theresourceadapter-classelementResourceadapterType<T>id(String id)Sets theidattributeResourceadapterType<T>removeAllAdminobject()Removes alladminobjectelementsResourceadapterType<T>removeAllConfigProperty()Removes allconfig-propertyelementsResourceadapterType<T>removeAllSecurityPermission()Removes allsecurity-permissionelementsResourceadapterType<T>removeId()Removes theidattributeResourceadapterType<T>removeInboundResourceadapter()Removes theinbound-resourceadapterelementResourceadapterType<T>removeOutboundResourceadapter()Removes theoutbound-resourceadapterelementResourceadapterType<T>removeResourceadapterClass()Removes theresourceadapter-classelementResourceadapterType<T>resourceadapterClass(String resourceadapterClass)Sets theresourceadapter-classelementTup()
-
-
-
Method Detail
-
resourceadapterClass
public ResourceadapterType<T> resourceadapterClass(String resourceadapterClass)
Sets theresourceadapter-classelement- Specified by:
resourceadapterClassin interfaceResourceadapterType<T>- Parameters:
resourceadapterClass- the value for the elementresourceadapter-class- Returns:
- the current instance of
ResourceadapterType
-
getResourceadapterClass
public String getResourceadapterClass()
Returns theresourceadapter-classelement- Specified by:
getResourceadapterClassin interfaceResourceadapterType<T>- Returns:
- the node defined for the element
resourceadapter-class
-
removeResourceadapterClass
public ResourceadapterType<T> removeResourceadapterClass()
Removes theresourceadapter-classelement- Specified by:
removeResourceadapterClassin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateConfigProperty
public ConfigPropertyType<ResourceadapterType<T>> 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
public ConfigPropertyType<ResourceadapterType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceResourceadapterType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<ResourceadapterType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceResourceadapterType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public ResourceadapterType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceResourceadapterType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
getOrCreateOutboundResourceadapter
public OutboundResourceadapterType<ResourceadapterType<T>> 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>
-
removeOutboundResourceadapter
public ResourceadapterType<T> removeOutboundResourceadapter()
Removes theoutbound-resourceadapterelement- Specified by:
removeOutboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateInboundResourceadapter
public InboundResourceadapterType<ResourceadapterType<T>> 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>
-
removeInboundResourceadapter
public ResourceadapterType<T> removeInboundResourceadapter()
Removes theinbound-resourceadapterelement- Specified by:
removeInboundResourceadapterin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
getOrCreateAdminobject
public AdminobjectType<ResourceadapterType<T>> 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
public AdminobjectType<ResourceadapterType<T>> createAdminobject()
Creates a newadminobjectelement- Specified by:
createAdminobjectin interfaceResourceadapterType<T>- Returns:
- the new created instance of
AdminobjectType>
-
getAllAdminobject
public List<AdminobjectType<ResourceadapterType<T>>> getAllAdminobject()
Returns alladminobjectelements- Specified by:
getAllAdminobjectin interfaceResourceadapterType<T>- Returns:
- list of
adminobject
-
removeAllAdminobject
public ResourceadapterType<T> removeAllAdminobject()
Removes alladminobjectelements- Specified by:
removeAllAdminobjectin interfaceResourceadapterType<T>- Returns:
- the current instance of
AdminobjectType>
-
getOrCreateSecurityPermission
public SecurityPermissionType<ResourceadapterType<T>> 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
public SecurityPermissionType<ResourceadapterType<T>> createSecurityPermission()
Creates a newsecurity-permissionelement- Specified by:
createSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- the new created instance of
SecurityPermissionType>
-
getAllSecurityPermission
public List<SecurityPermissionType<ResourceadapterType<T>>> getAllSecurityPermission()
Returns allsecurity-permissionelements- Specified by:
getAllSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- list of
security-permission
-
removeAllSecurityPermission
public ResourceadapterType<T> removeAllSecurityPermission()
Removes allsecurity-permissionelements- Specified by:
removeAllSecurityPermissionin interfaceResourceadapterType<T>- Returns:
- the current instance of
SecurityPermissionType>
-
id
public ResourceadapterType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceResourceadapterType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceadapterType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceResourceadapterType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ResourceadapterType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceResourceadapterType<T>- Returns:
- the current instance of
ResourceadapterType
-
-