Interface ResourceRefType<T>
- All Superinterfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>
- All Known Implementing Classes:
ResourceRefTypeImpl
public interface ResourceRefType<T>
extends org.jboss.shrinkwrap.descriptor.api.Child<T>
This interface defines the contract for the
resource-refType xsd type-
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-typeelementMethods inherited from interface org.jboss.shrinkwrap.descriptor.api.Child
up
-
Method Details
-
lookupName
Sets thelookup-nameelement- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
ResourceRefType
-
getLookupName
String getLookupName()Returns thelookup-nameelement- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
ResourceRefType<T> removeLookupName()Removes thelookup-nameelement- Returns:
- the current instance of
ResourceRefType
-
mappedName
Sets themapped-nameelement- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
ResourceRefType
-
getMappedName
String getMappedName()Returns themapped-nameelement- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
ResourceRefType<T> removeMappedName()Removes themapped-nameelement- Returns:
- the current instance of
ResourceRefType
-
getOrCreateInjectionTarget
InjectionTargetType<ResourceRefType<T>> getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
InjectionTargetType<ResourceRefType<T>> createInjectionTarget()Creates a newinjection-targetelement- Returns:
- the new created instance of
InjectionTargetType<ResourceRefType>
-
getAllInjectionTarget
List<InjectionTargetType<ResourceRefType<T>>> getAllInjectionTarget()Returns allinjection-targetelements- Returns:
- list of
injection-target
-
removeAllInjectionTarget
ResourceRefType<T> removeAllInjectionTarget()Removes allinjection-targetelements- Returns:
- the current instance of
InjectionTargetType<ResourceRefType>
-
description
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceRefType
-
getAllDescription
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
ResourceRefType<T> removeAllDescription()Removes thedescriptionelement- Returns:
- the current instance of
ResourceRefType
-
resRefName
Sets theres-ref-nameelement- Parameters:
resRefName- the value for the elementres-ref-name- Returns:
- the current instance of
ResourceRefType
-
getResRefName
String getResRefName()Returns theres-ref-nameelement- Returns:
- the node defined for the element
res-ref-name
-
removeResRefName
ResourceRefType<T> removeResRefName()Removes theres-ref-nameelement- Returns:
- the current instance of
ResourceRefType
-
resType
Sets theres-typeelement- Parameters:
resType- the value for the elementres-type- Returns:
- the current instance of
ResourceRefType
-
getResType
String getResType()Returns theres-typeelement- Returns:
- the node defined for the element
res-type
-
removeResType
ResourceRefType<T> removeResType()Removes theres-typeelement- Returns:
- the current instance of
ResourceRefType
-
resAuth
Sets theres-authelement- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
resAuth
Sets theres-authelement- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
getResAuth
ResAuthType getResAuth()Returns theres-authelement- Returns:
- the value found for the element
res-auth
-
getResAuthAsString
String getResAuthAsString()Returns theres-authelement- Returns:
- the value found for the element
res-auth
-
removeResAuth
ResourceRefType<T> removeResAuth()Removes theres-authattribute- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
Sets theres-sharing-scopeelement- Parameters:
resSharingScope- the value for the elementres-sharing-scope- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
Sets theres-sharing-scopeelement- Parameters:
resSharingScope- the value for the elementres-sharing-scope- Returns:
- the current instance of
ResourceRefType
-
getResSharingScope
ResSharingScopeType getResSharingScope()Returns theres-sharing-scopeelement- Returns:
- the value found for the element
res-sharing-scope
-
getResSharingScopeAsString
String getResSharingScopeAsString()Returns theres-sharing-scopeelement- Returns:
- the value found for the element
res-sharing-scope
-
removeResSharingScope
ResourceRefType<T> removeResSharingScope()Removes theres-sharing-scopeattribute- Returns:
- the current instance of
ResourceRefType
-
id
Sets theidattribute- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceRefType
-
getId
String getId()Returns theidattribute- Returns:
- the value defined for the attribute
id
-
removeId
ResourceRefType<T> removeId()Removes theidattribute- Returns:
- the current instance of
ResourceRefType
-