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 the
resource-env-refType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionResourceEnvRefTypeImpl(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
Modifier and TypeMethodDescriptionCreates a newinjection-targetelementdescription(String... values) Creates for all String objects representingdescriptionelements, a newdescriptionelementReturns alldescriptionelementsReturns allinjection-targetelementsgetId()Returns theidattributeReturns thelookup-nameelementReturns themapped-nameelementIf not already created, a newinjection-targetelement will be created and returned.Returns theresource-env-ref-nameelementReturns theresource-env-ref-typeelementSets theidattributelookupName(String lookupName) Sets thelookup-nameelementmappedName(String mappedName) Sets themapped-nameelementRemoves thedescriptionelementRemoves allinjection-targetelementsremoveId()Removes theidattributeRemoves thelookup-nameelementRemoves themapped-nameelementRemoves theresource-env-ref-nameelementRemoves theresource-env-ref-typeelementresourceEnvRefName(String resourceEnvRefName) Sets theresource-env-ref-nameelementresourceEnvRefType(String resourceEnvRefType) Sets theresource-env-ref-typeelementup()
-
Constructor Details
-
ResourceEnvRefTypeImpl
-
ResourceEnvRefTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
lookupName
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceResourceEnvRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
ResourceEnvRefType
-
getLookupName
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
mappedName
Sets themapped-nameelement- Specified by:
mappedNamein interfaceResourceEnvRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
ResourceEnvRefType
-
getMappedName
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
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
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- the new created instance of
InjectionTargetType<ResourceEnvRefType>
-
getAllInjectionTarget
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
InjectionTargetType<ResourceEnvRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceResourceEnvRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceEnvRefType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceResourceEnvRefType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
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
Returns theresource-env-ref-nameelement- Specified by:
getResourceEnvRefNamein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
resource-env-ref-name
-
removeResourceEnvRefName
Removes theresource-env-ref-nameelement- Specified by:
removeResourceEnvRefNamein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
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
Returns theresource-env-ref-typeelement- Specified by:
getResourceEnvRefTypein interfaceResourceEnvRefType<T>- Returns:
- the node defined for the element
resource-env-ref-type
-
removeResourceEnvRefType
Removes theresource-env-ref-typeelement- Specified by:
removeResourceEnvRefTypein interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-
id
Sets theidattribute- Specified by:
idin interfaceResourceEnvRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceEnvRefType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceResourceEnvRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceResourceEnvRefType<T>- Returns:
- the current instance of
ResourceEnvRefType
-