Class ResourceEnvRefTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.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 InjectionTargetType<ResourceEnvRefType<T>>createInjectionTarget()Creates a newinjection-targetelementResourceEnvRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<ResourceEnvRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetId()Returns theidattributeStringgetLookupName()Returns thelookup-nameelementStringgetMappedName()Returns themapped-nameelementInjectionTargetType<ResourceEnvRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.StringgetResourceEnvRefName()Returns theresource-env-ref-nameelementStringgetResourceEnvRefType()Returns theresource-env-ref-typeelementResourceEnvRefType<T>id(String id)Sets theidattributeResourceEnvRefType<T>lookupName(String lookupName)Sets thelookup-nameelementResourceEnvRefType<T>mappedName(String mappedName)Sets themapped-nameelementResourceEnvRefType<T>removeAllDescription()Removes thedescriptionelementResourceEnvRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsResourceEnvRefType<T>removeId()Removes theidattributeResourceEnvRefType<T>removeLookupName()Removes thelookup-nameelementResourceEnvRefType<T>removeMappedName()Removes themapped-nameelementResourceEnvRefType<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
-
lookupName
public ResourceEnvRefType<T> lookupName(String lookupName)
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceResourceEnvRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
ResourceEnvRefType
-
getLookupName
public String getLookupName()
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
public ResourceEnvRefType<T> removeLookupName()
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
mappedName
public ResourceEnvRefType<T> mappedName(String mappedName)
Sets themapped-nameelement- Specified by:
mappedNamein interfaceResourceEnvRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
ResourceEnvRefType
-
getMappedName
public String getMappedName()
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
public ResourceEnvRefType<T> removeMappedName()
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
getOrCreateInjectionTarget
public InjectionTargetType<ResourceEnvRefType<T>> getOrCreateInjectionTarget()
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
public InjectionTargetType<ResourceEnvRefType<T>> createInjectionTarget()
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- the new created instance of
InjectionTargetType>
-
getAllInjectionTarget
public List<InjectionTargetType<ResourceEnvRefType<T>>> getAllInjectionTarget()
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
public ResourceEnvRefType<T> removeAllInjectionTarget()
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
InjectionTargetType>
-
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
-
-