Class ExtensionTypeImpl<T>
- java.lang.Object
-
- org.jboss.jca.embedded.dsl.datasources12.impl.ExtensionTypeImpl<T>
-
- All Implemented Interfaces:
ExtensionType<T>,org.jboss.shrinkwrap.descriptor.api.Child<T>
public class ExtensionTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ExtensionType<T>
This class implements theextensionTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ExtensionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ExtensionTypeImpl(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 ExtensionType<T>className(String className)Sets theclass-nameattributeConfigPropertyType<ExtensionType<T>>createConfigProperty()Creates a newconfig-propertyelementList<ConfigPropertyType<ExtensionType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetClassName()Returns theclass-nameattributeConfigPropertyType<ExtensionType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.ExtensionType<T>removeAllConfigProperty()Removes allconfig-propertyelementsExtensionType<T>removeClassName()Removes theclass-nameattributeTup()
-
-
-
Method Detail
-
getOrCreateConfigProperty
public ConfigPropertyType<ExtensionType<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 interfaceExtensionType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
public ConfigPropertyType<ExtensionType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceExtensionType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<ExtensionType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceExtensionType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public ExtensionType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceExtensionType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
className
public ExtensionType<T> className(String className)
Sets theclass-nameattribute- Specified by:
classNamein interfaceExtensionType<T>- Parameters:
className- the value for the attributeclass-name- Returns:
- the current instance of
ExtensionType
-
getClassName
public String getClassName()
Returns theclass-nameattribute- Specified by:
getClassNamein interfaceExtensionType<T>- Returns:
- the value defined for the attribute
class-name
-
removeClassName
public ExtensionType<T> removeClassName()
Removes theclass-nameattribute- Specified by:
removeClassNamein interfaceExtensionType<T>- Returns:
- the current instance of
ExtensionType
-
-