Class ResourceRefTypeImpl<T>
java.lang.Object
org.jboss.shrinkwrap.descriptor.impl.javaee7.ResourceRefTypeImpl<T>
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,ResourceRefType<T>
public class ResourceRefTypeImpl<T>
extends Object
implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>
This class implements the
resource-refType xsd type-
Constructor Summary
ConstructorsConstructorDescriptionResourceRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node) ResourceRefTypeImpl(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 theres-authelementReturns theres-authelementReturns theres-ref-nameelementReturns theres-sharing-scopeelementReturns theres-sharing-scopeelementReturns theres-typeelementSets theidattributelookupName(String lookupName) Sets thelookup-nameelementmappedName(String mappedName) Sets themapped-nameelementRemoves thedescriptionelementRemoves allinjection-targetelementsremoveId()Removes theidattributeRemoves thelookup-nameelementRemoves themapped-nameelementRemoves theres-authattributeRemoves theres-ref-nameelementRemoves theres-sharing-scopeattributeRemoves theres-typeelementSets theres-authelementresAuth(ResAuthType resAuth) Sets theres-authelementresRefName(String resRefName) Sets theres-ref-nameelementresSharingScope(String resSharingScope) Sets theres-sharing-scopeelementresSharingScope(ResSharingScopeType resSharingScope) Sets theres-sharing-scopeelementSets theres-typeelementup()
-
Constructor Details
-
ResourceRefTypeImpl
-
ResourceRefTypeImpl
-
-
Method Details
-
up
- Specified by:
upin interfaceorg.jboss.shrinkwrap.descriptor.api.Child<T>
-
lookupName
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceResourceRefType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
ResourceRefType
-
getLookupName
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceResourceRefType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
mappedName
Sets themapped-nameelement- Specified by:
mappedNamein interfaceResourceRefType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
ResourceRefType
-
getMappedName
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceResourceRefType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
getOrCreateInjectionTarget
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfaceResourceRefType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceResourceRefType<T>- Returns:
- the new created instance of
InjectionTargetTypeinvalid input: '<'ResourceRefType>
-
getAllInjectionTarget
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceResourceRefType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceResourceRefType<T>- Returns:
- the current instance of
InjectionTargetTypeinvalid input: '<'ResourceRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceResourceRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceRefType
-
getAllDescription
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceResourceRefType<T>- Returns:
- list of
description
-
removeAllDescription
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resRefName
Sets theres-ref-nameelement- Specified by:
resRefNamein interfaceResourceRefType<T>- Parameters:
resRefName- the value for the elementres-ref-name- Returns:
- the current instance of
ResourceRefType
-
getResRefName
Returns theres-ref-nameelement- Specified by:
getResRefNamein interfaceResourceRefType<T>- Returns:
- the node defined for the element
res-ref-name
-
removeResRefName
Removes theres-ref-nameelement- Specified by:
removeResRefNamein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resType
Sets theres-typeelement- Specified by:
resTypein interfaceResourceRefType<T>- Parameters:
resType- the value for the elementres-type- Returns:
- the current instance of
ResourceRefType
-
getResType
Returns theres-typeelement- Specified by:
getResTypein interfaceResourceRefType<T>- Returns:
- the node defined for the element
res-type
-
removeResType
Removes theres-typeelement- Specified by:
removeResTypein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resAuth
Sets theres-authelement- Specified by:
resAuthin interfaceResourceRefType<T>- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
resAuth
Sets theres-authelement- Specified by:
resAuthin interfaceResourceRefType<T>- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
getResAuth
Returns theres-authelement- Specified by:
getResAuthin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-auth
-
getResAuthAsString
Returns theres-authelement- Specified by:
getResAuthAsStringin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-auth
-
removeResAuth
Removes theres-authattribute- Specified by:
removeResAuthin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
Sets theres-sharing-scopeelement- Specified by:
resSharingScopein interfaceResourceRefType<T>- Parameters:
resSharingScope- the value for the elementres-sharing-scope- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
Sets theres-sharing-scopeelement- Specified by:
resSharingScopein interfaceResourceRefType<T>- Parameters:
resSharingScope- the value for the elementres-sharing-scope- Returns:
- the current instance of
ResourceRefType
-
getResSharingScope
Returns theres-sharing-scopeelement- Specified by:
getResSharingScopein interfaceResourceRefType<T>- Returns:
- the value found for the element
res-sharing-scope
-
getResSharingScopeAsString
Returns theres-sharing-scopeelement- Specified by:
getResSharingScopeAsStringin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-sharing-scope
-
removeResSharingScope
Removes theres-sharing-scopeattribute- Specified by:
removeResSharingScopein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
id
Sets theidattribute- Specified by:
idin interfaceResourceRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceRefType
-
getId
Returns theidattribute- Specified by:
getIdin interfaceResourceRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
Removes theidattribute- Specified by:
removeIdin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-