Class ActivationspecTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.connector16.ActivationspecTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ActivationspecType<T>
public class ActivationspecTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ActivationspecType<T>
This class implements theactivationspecTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ActivationspecTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ActivationspecTypeImpl(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 ActivationspecType<T>activationspecClass(String activationspecClass)Sets theactivationspec-classelementConfigPropertyType<ActivationspecType<T>>createConfigProperty()Creates a newconfig-propertyelementRequiredConfigPropertyType<ActivationspecType<T>>createRequiredConfigProperty()Creates a newrequired-config-propertyelementStringgetActivationspecClass()Returns theactivationspec-classelementList<ConfigPropertyType<ActivationspecType<T>>>getAllConfigProperty()Returns allconfig-propertyelementsList<RequiredConfigPropertyType<ActivationspecType<T>>>getAllRequiredConfigProperty()Returns allrequired-config-propertyelementsStringgetId()Returns theidattributeConfigPropertyType<ActivationspecType<T>>getOrCreateConfigProperty()If not already created, a newconfig-propertyelement will be created and returned.RequiredConfigPropertyType<ActivationspecType<T>>getOrCreateRequiredConfigProperty()If not already created, a newrequired-config-propertyelement will be created and returned.ActivationspecType<T>id(String id)Sets theidattributeActivationspecType<T>removeActivationspecClass()Removes theactivationspec-classelementActivationspecType<T>removeAllConfigProperty()Removes allconfig-propertyelementsActivationspecType<T>removeAllRequiredConfigProperty()Removes allrequired-config-propertyelementsActivationspecType<T>removeId()Removes theidattributeTup()
-
-
-
Method Detail
-
activationspecClass
public ActivationspecType<T> activationspecClass(String activationspecClass)
Sets theactivationspec-classelement- Specified by:
activationspecClassin interfaceActivationspecType<T>- Parameters:
activationspecClass- the value for the elementactivationspec-class- Returns:
- the current instance of
ActivationspecType
-
getActivationspecClass
public String getActivationspecClass()
Returns theactivationspec-classelement- Specified by:
getActivationspecClassin interfaceActivationspecType<T>- Returns:
- the node defined for the element
activationspec-class
-
removeActivationspecClass
public ActivationspecType<T> removeActivationspecClass()
Removes theactivationspec-classelement- Specified by:
removeActivationspecClassin interfaceActivationspecType<T>- Returns:
- the current instance of
ActivationspecType
-
getOrCreateRequiredConfigProperty
public RequiredConfigPropertyType<ActivationspecType<T>> getOrCreateRequiredConfigProperty()
If not already created, a newrequired-config-propertyelement will be created and returned. Otherwise, the first existingrequired-config-propertyelement will be returned.- Specified by:
getOrCreateRequiredConfigPropertyin interfaceActivationspecType<T>- Returns:
- the instance defined for the element
required-config-property
-
createRequiredConfigProperty
public RequiredConfigPropertyType<ActivationspecType<T>> createRequiredConfigProperty()
Creates a newrequired-config-propertyelement- Specified by:
createRequiredConfigPropertyin interfaceActivationspecType<T>- Returns:
- the new created instance of
RequiredConfigPropertyType>
-
getAllRequiredConfigProperty
public List<RequiredConfigPropertyType<ActivationspecType<T>>> getAllRequiredConfigProperty()
Returns allrequired-config-propertyelements- Specified by:
getAllRequiredConfigPropertyin interfaceActivationspecType<T>- Returns:
- list of
required-config-property
-
removeAllRequiredConfigProperty
public ActivationspecType<T> removeAllRequiredConfigProperty()
Removes allrequired-config-propertyelements- Specified by:
removeAllRequiredConfigPropertyin interfaceActivationspecType<T>- Returns:
- the current instance of
RequiredConfigPropertyType>
-
getOrCreateConfigProperty
public ConfigPropertyType<ActivationspecType<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 interfaceActivationspecType<T>- Returns:
- the instance defined for the element
config-property
-
createConfigProperty
public ConfigPropertyType<ActivationspecType<T>> createConfigProperty()
Creates a newconfig-propertyelement- Specified by:
createConfigPropertyin interfaceActivationspecType<T>- Returns:
- the new created instance of
ConfigPropertyType>
-
getAllConfigProperty
public List<ConfigPropertyType<ActivationspecType<T>>> getAllConfigProperty()
Returns allconfig-propertyelements- Specified by:
getAllConfigPropertyin interfaceActivationspecType<T>- Returns:
- list of
config-property
-
removeAllConfigProperty
public ActivationspecType<T> removeAllConfigProperty()
Removes allconfig-propertyelements- Specified by:
removeAllConfigPropertyin interfaceActivationspecType<T>- Returns:
- the current instance of
ConfigPropertyType>
-
id
public ActivationspecType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceActivationspecType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ActivationspecType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceActivationspecType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ActivationspecType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceActivationspecType<T>- Returns:
- the current instance of
ActivationspecType
-
-