Class ResourceEnvRefTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.j2ee14.ResourceEnvRefTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ResourceEnvRefType<T>
public class ResourceEnvRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceEnvRefType<T>
This class implements theresource-env-refTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ResourceEnvRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)ResourceEnvRefTypeImpl(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 ResourceEnvRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsStringgetId()Returns theidattributeStringgetResourceEnvRefName()Returns theresource-env-ref-nameelementStringgetResourceEnvRefType()Returns theresource-env-ref-typeelementResourceEnvRefType<T>id(String id)Sets theidattributeResourceEnvRefType<T>removeAllDescription()Removes thedescriptionelementResourceEnvRefType<T>removeId()Removes theidattributeResourceEnvRefType<T>removeResourceEnvRefName()Removes theresource-env-ref-nameelementResourceEnvRefType<T>removeResourceEnvRefType()Removes theresource-env-ref-typeelementResourceEnvRefType<T>resourceEnvRefName(String resourceEnvRefName)Sets theresource-env-ref-nameelementResourceEnvRefType<T>resourceEnvRefType(String resourceEnvRefType)Sets theresource-env-ref-typeelementTup()
-
-
-
Method Detail
-
description
public ResourceEnvRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceResourceEnvRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceEnvRefType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceResourceEnvRefType<T>- Returns:
- list of
description
-
removeAllDescription
public ResourceEnvRefType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
resourceEnvRefName
public ResourceEnvRefType<T> resourceEnvRefName(String resourceEnvRefName)
Sets theresource-env-ref-nameelement- Specified by:
resourceEnvRefNamein interfaceResourceEnvRefType<T>- Parameters:
resourceEnvRefName- the value for the elementresource-env-ref-name- Returns:
- the current instance of
ResourceEnvRefType
-
getResourceEnvRefName
public String getResourceEnvRefName()
Returns theresource-env-ref-nameelement- Specified by:
getResourceEnvRefNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
resource-env-ref-name
-
removeResourceEnvRefName
public ResourceEnvRefType<T> removeResourceEnvRefName()
Removes theresource-env-ref-nameelement- Specified by:
removeResourceEnvRefNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
resourceEnvRefType
public ResourceEnvRefType<T> resourceEnvRefType(String resourceEnvRefType)
Sets theresource-env-ref-typeelement- Specified by:
resourceEnvRefTypein interfaceResourceEnvRefType<T>- Parameters:
resourceEnvRefType- the value for the elementresource-env-ref-type- Returns:
- the current instance of
ResourceEnvRefType
-
getResourceEnvRefType
public String getResourceEnvRefType()
Returns theresource-env-ref-typeelement- Specified by:
getResourceEnvRefTypein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
resource-env-ref-type
-
removeResourceEnvRefType
public ResourceEnvRefType<T> removeResourceEnvRefType()
Removes theresource-env-ref-typeelement- Specified by:
removeResourceEnvRefTypein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
id
public ResourceEnvRefType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceResourceEnvRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceEnvRefType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceResourceEnvRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ResourceEnvRefType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
-