Class ConnectionDefinitionTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector15.ConnectionDefinitionTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ConnectionDefinitionType<T>
public class ConnectionDefinitionTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ConnectionDefinitionType<T>
This class implements theconnection-definitionTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ConnectionDefinitionTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ConnectionDefinitionTypeImpl(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 ConnectionDefinitionType<T>connectionfactoryImplClass(String connectionfactoryImplClass)Sets theconnectionfactory-impl-classelementConnectionDefinitionType<T>connectionfactoryInterface(String connectionfactoryInterface)Sets theconnectionfactory-interfaceelementConnectionDefinitionType<T>connectionImplClass(String connectionImplClass)Sets theconnection-impl-classelementConnectionDefinitionType<T>connectionInterface(String connectionInterface)Sets theconnection-interfaceelementConfigPropertyType<ConnectionDefinitionType<T>>createConfigProperty()Creates a newconfig-propertyelementList<ConfigPropertyType<ConnectionDefinitionType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsStringgetConnectionfactoryImplClass()Returns theconnectionfactory-impl-classelementStringgetConnectionfactoryInterface()Returns theconnectionfactory-interfaceelementStringgetConnectionImplClass()Returns theconnection-impl-classelementStringgetConnectionInterface()Returns theconnection-interfaceelementStringgetId()Returns theidattributeStringgetManagedconnectionfactoryClass()Returns themanagedconnectionfactory-classelementConfigPropertyType<ConnectionDefinitionType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.ConnectionDefinitionType<T>id(String id)Sets theidattributeConnectionDefinitionType<T>managedconnectionfactoryClass(String managedconnectionfactoryClass)Sets themanagedconnectionfactory-classelementConnectionDefinitionType<T>removeAllConfigProperty()Removes allconfig-propertyelementsConnectionDefinitionType<T>removeConnectionfactoryImplClass()Removes theconnectionfactory-impl-classelementConnectionDefinitionType<T>removeConnectionfactoryInterface()Removes theconnectionfactory-interfaceelementConnectionDefinitionType<T>removeConnectionImplClass()Removes theconnection-impl-classelementConnectionDefinitionType<T>removeConnectionInterface()Removes theconnection-interfaceelementConnectionDefinitionType<T>removeId()Removes theidattributeConnectionDefinitionType<T>removeManagedconnectionfactoryClass()Removes themanagedconnectionfactory-classelementTup()
-
-
-
Method Detail
-
managedconnectionfactoryClass
public ConnectionDefinitionType<T> managedconnectionfactoryClass(String managedconnectionfactoryClass)
Sets themanagedconnectionfactory-classelement- Specified by:
managedconnectionfactoryClassin interfaceConnectionDefinitionType<T>- Parameters:
managedconnectionfactoryClass- the value for the elementmanagedconnectionfactory-class- Returns:
- the current instance of
ConnectionDefinitionType
-
getManagedconnectionfactoryClass
public String getManagedconnectionfactoryClass()
Returns themanagedconnectionfactory-classelement- Specified by:
getManagedconnectionfactoryClassin interfaceConnectionDefinitionType<T>- Returns:
- the node defined for the element
managedconnectionfactory-class
-
removeManagedconnectionfactoryClass
public ConnectionDefinitionType<T> removeManagedconnectionfactoryClass()
Removes themanagedconnectionfactory-classelement- Specified by:
removeManagedconnectionfactoryClassin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
getOrCreateConfigProperty
public ConfigPropertyType<ConnectionDefinitionType<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 interfaceConnectionDefinitionType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
public ConfigPropertyType<ConnectionDefinitionType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<ConnectionDefinitionType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public ConnectionDefinitionType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
connectionfactoryInterface
public ConnectionDefinitionType<T> connectionfactoryInterface(String connectionfactoryInterface)
Sets theconnectionfactory-interfaceelement- Specified by:
connectionfactoryInterfacein interfaceConnectionDefinitionType<T>- Parameters:
connectionfactoryInterface- the value for the elementconnectionfactory-interface- Returns:
- the current instance of
ConnectionDefinitionType
-
getConnectionfactoryInterface
public String getConnectionfactoryInterface()
Returns theconnectionfactory-interfaceelement- Specified by:
getConnectionfactoryInterfacein interfaceConnectionDefinitionType<T>- Returns:
- the node defined for the element
connectionfactory-interface
-
removeConnectionfactoryInterface
public ConnectionDefinitionType<T> removeConnectionfactoryInterface()
Removes theconnectionfactory-interfaceelement- Specified by:
removeConnectionfactoryInterfacein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
connectionfactoryImplClass
public ConnectionDefinitionType<T> connectionfactoryImplClass(String connectionfactoryImplClass)
Sets theconnectionfactory-impl-classelement- Specified by:
connectionfactoryImplClassin interfaceConnectionDefinitionType<T>- Parameters:
connectionfactoryImplClass- the value for the elementconnectionfactory-impl-class- Returns:
- the current instance of
ConnectionDefinitionType
-
getConnectionfactoryImplClass
public String getConnectionfactoryImplClass()
Returns theconnectionfactory-impl-classelement- Specified by:
getConnectionfactoryImplClassin interfaceConnectionDefinitionType<T>- Returns:
- the node defined for the element
connectionfactory-impl-class
-
removeConnectionfactoryImplClass
public ConnectionDefinitionType<T> removeConnectionfactoryImplClass()
Removes theconnectionfactory-impl-classelement- Specified by:
removeConnectionfactoryImplClassin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
connectionInterface
public ConnectionDefinitionType<T> connectionInterface(String connectionInterface)
Sets theconnection-interfaceelement- Specified by:
connectionInterfacein interfaceConnectionDefinitionType<T>- Parameters:
connectionInterface- the value for the elementconnection-interface- Returns:
- the current instance of
ConnectionDefinitionType
-
getConnectionInterface
public String getConnectionInterface()
Returns theconnection-interfaceelement- Specified by:
getConnectionInterfacein interfaceConnectionDefinitionType<T>- Returns:
- the node defined for the element
connection-interface
-
removeConnectionInterface
public ConnectionDefinitionType<T> removeConnectionInterface()
Removes theconnection-interfaceelement- Specified by:
removeConnectionInterfacein interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
connectionImplClass
public ConnectionDefinitionType<T> connectionImplClass(String connectionImplClass)
Sets theconnection-impl-classelement- Specified by:
connectionImplClassin interfaceConnectionDefinitionType<T>- Parameters:
connectionImplClass- the value for the elementconnection-impl-class- Returns:
- the current instance of
ConnectionDefinitionType
-
getConnectionImplClass
public String getConnectionImplClass()
Returns theconnection-impl-classelement- Specified by:
getConnectionImplClassin interfaceConnectionDefinitionType<T>- Returns:
- the node defined for the element
connection-impl-class
-
removeConnectionImplClass
public ConnectionDefinitionType<T> removeConnectionImplClass()
Removes theconnection-impl-classelement- Specified by:
removeConnectionImplClassin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
id
public ConnectionDefinitionType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceConnectionDefinitionType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ConnectionDefinitionType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceConnectionDefinitionType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ConnectionDefinitionType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceConnectionDefinitionType<T>- Returns:
- the current instance of
ConnectionDefinitionType
-
-