Interface AdminObjectType<T>
-
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
AdminObjectTypeImpl
public interface AdminObjectType<T> extends org.jboss.shrinkwrap.descriptor.api.Child<T>This interface defines the contract for theadmin-objectTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract 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-contextattributeAdminObjectType<T>useJavaContext(Boolean useJavaContext)Sets theuse-java-contextattribute
-
-
-
Method Detail
-
className
AdminObjectType<T> className(String className)
Sets theclass-nameattribute- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
AdminObjectType
-
getClassName
String getClassName()
Returns theclass-nameattribute- Returns:
- the value defined for the attribute
class-name
-
removeClassName
AdminObjectType<T> removeClassName()
Removes theclass-nameattribute- Returns:
- the current instance of
AdminObjectType
-
jndiName
AdminObjectType<T> jndiName(String jndiName)
Sets thejndi-nameattribute- Parameters:
jndiName- the value for the attributejndi-name- Returns:
- the current instance of
AdminObjectType
-
getJndiName
String getJndiName()
Returns thejndi-nameattribute- Returns:
- the value defined for the attribute
jndi-name
-
removeJndiName
AdminObjectType<T> removeJndiName()
Removes thejndi-nameattribute- Returns:
- the current instance of
AdminObjectType
-
enabled
AdminObjectType<T> enabled(Boolean enabled)
Sets theenabledattribute- Parameters:
enabled- the value for the attributeenabled- Returns:
- the current instance of
AdminObjectType
-
isEnabled
Boolean isEnabled()
Returns theenabledattribute- Returns:
- the value defined for the attribute
enabled
-
removeEnabled
AdminObjectType<T> removeEnabled()
Removes theenabledattribute- Returns:
- the current instance of
AdminObjectType
-
useJavaContext
AdminObjectType<T> useJavaContext(Boolean useJavaContext)
Sets theuse-java-contextattribute- Parameters:
useJavaContext- the value for the attributeuse-java-context- Returns:
- the current instance of
AdminObjectType
-
isUseJavaContext
Boolean isUseJavaContext()
Returns theuse-java-contextattribute- Returns:
- the value defined for the attribute
use-java-context
-
removeUseJavaContext
AdminObjectType<T> removeUseJavaContext()
Removes theuse-java-contextattribute- Returns:
- the current instance of
AdminObjectType
-
poolName
AdminObjectType<T> poolName(String poolName)
Sets thepool-nameattribute- Parameters:
poolName- the value for the attributepool-name- Returns:
- the current instance of
AdminObjectType
-
getPoolName
String getPoolName()
Returns thepool-nameattribute- Returns:
- the value defined for the attribute
pool-name
-
removePoolName
AdminObjectType<T> removePoolName()
Removes thepool-nameattribute- Returns:
- the current instance of
AdminObjectType
-
getOrCreateConfigProperty
ConfigPropertyType<AdminObjectType<T>> getOrCreateConfigProperty()
If not already created, a newconfig-propertyelement will be created and returned. Otherwise, the first existingconfig-propertyelement will be returned.- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
ConfigPropertyType<AdminObjectType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
List<ConfigPropertyType<AdminObjectType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Returns:
- list of
config-property
-
removeAllConfigProperty
AdminObjectType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Returns:
- the current instance of
ConfigPropertyType>
-
-