Class AdminObjectTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.ironjacamar10.impl.AdminObjectTypeImpl<T>
-
- All Implemented Interfaces:
AdminObjectType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class AdminObjectTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, AdminObjectType<T>
This class implements theadmin-objectTypexsd type
-
-
Constructor Summary
Constructors Constructor Description AdminObjectTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)AdminObjectTypeImpl(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<T>className(String className)Sets theclass-nameattributeConfigPropertyType<AdminObjectType<T>>createConfigProperty()Creates a newconfig-propertyelementAdminObjectType<T>enabled(Boolean enabled)Sets theenabledattributeList<ConfigPropertyType<AdminObjectType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetClassName()Returns theclass-nameattributeStringgetJndiName()Returns thejndi-nameattributeConfigPropertyType<AdminObjectType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.StringgetPoolName()Returns thepool-nameattributeBooleanisEnabled()Returns theenabledattributeBooleanisUseJavaContext()Returns theuse-java-contextattributeAdminObjectType<T>jndiName(String jndiName)Sets thejndi-nameattributeAdminObjectType<T>poolName(String poolName)Sets thepool-nameattributeAdminObjectType<T>removeAllConfigProperty()Removes allconfig-propertyelementsAdminObjectType<T>removeClassName()Removes theclass-nameattributeAdminObjectType<T>removeEnabled()Removes theenabledattributeAdminObjectType<T>removeJndiName()Removes thejndi-nameattributeAdminObjectType<T>removePoolName()Removes thepool-nameattributeAdminObjectType<T>removeUseJavaContext()Removes theuse-java-contextattributeTup()AdminObjectType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattribute
-
-
-
Method Detail
-
className
public AdminObjectType<T> className(String className)
Sets theclass-nameattribute- Specified by:
classNamein interfaceAdminObjectType<T>- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
AdminObjectType
-
getClassName
public String getClassName()
Returns theclass-nameattribute- Specified by:
getClassNamein interfaceAdminObjectType<T>- Returns:
- the value defined for the attribute
class-name
-
removeClassName
public AdminObjectType<T> removeClassName()
Removes theclass-nameattribute- Specified by:
removeClassNamein interfaceAdminObjectType<T>- Returns:
- the current instance of
AdminObjectType
-
jndiName
public AdminObjectType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Specified by:
jndiNamein interfaceAdminObjectType<T>- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
AdminObjectType
-
getJndiName
public String getJndiName()
Returns thejndi-nameattribute- Specified by:
getJndiNamein interfaceAdminObjectType<T>- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
public AdminObjectType<T> removeJndiName()
Removes thejndi-nameattribute- Specified by:
removeJndiNamein interfaceAdminObjectType<T>- Returns:
- the current instance of
AdminObjectType
-
enabled
public AdminObjectType<T> enabled(Boolean enabled)
Sets theenabledattribute- Specified by:
enabledin interfaceAdminObjectType<T>- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
AdminObjectType
-
isEnabled
public Boolean isEnabled()
Returns theenabledattribute- Specified by:
isEnabledin interfaceAdminObjectType<T>- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
public AdminObjectType<T> removeEnabled()
Removes theenabledattribute- Specified by:
removeEnabledin interfaceAdminObjectType<T>- Returns:
- the current instance of
AdminObjectType
-
useJavaContext
public AdminObjectType<T> useJavaContext(Boolean useJavaContext)
Sets theuse-java-contextattribute- Specified by:
useJavaContextin interfaceAdminObjectType<T>- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
AdminObjectType
-
isUseJavaContext
public Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Specified by:
isUseJavaContextin interfaceAdminObjectType<T>- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
public AdminObjectType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Specified by:
removeUseJavaContextin interfaceAdminObjectType<T>- Returns:
- the current instance of
AdminObjectType
-
poolName
public AdminObjectType<T> poolName(String poolName)
Sets thepool-nameattribute- Specified by:
poolNamein interfaceAdminObjectType<T>- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
AdminObjectType
-
getPoolName
public String getPoolName()
Returns thepool-nameattribute- Specified by:
getPoolNamein interfaceAdminObjectType<T>- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
public AdminObjectType<T> removePoolName()
Removes thepool-nameattribute- Specified by:
removePoolNamein interfaceAdminObjectType<T>- Returns:
- the current instance of
AdminObjectType
-
getOrCreateConfigProperty
public ConfigPropertyType<AdminObjectType<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 interfaceAdminObjectType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
public ConfigPropertyType<AdminObjectType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceAdminObjectType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<AdminObjectType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceAdminObjectType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public AdminObjectType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceAdminObjectType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
-