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 theresource-refTypexsd type
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description InjectionTargetType<ResourceRefType<T>>createInjectionTarget()Creates a newinjection-targetelementResourceRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<ResourceRefType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetId()Returns theidattributeStringgetLookupName()Returns thelookup-nameelementStringgetMappedName()Returns themapped-nameelementInjectionTargetType<ResourceRefType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.ResAuthTypegetResAuth()Returns theres-authelementStringgetResAuthAsString()Returns theres-authelementStringgetResRefName()Returns theres-ref-nameelementResSharingScopeTypegetResSharingScope()Returns theres-sharing-scopeelementStringgetResSharingScopeAsString()Returns theres-sharing-scopeelementStringgetResType()Returns theres-typeelementResourceRefType<T>id(String id)Sets theidattributeResourceRefType<T>lookupName(String lookupName)Sets thelookup-nameelementResourceRefType<T>mappedName(String mappedName)Sets themapped-nameelementResourceRefType<T>removeAllDescription()Removes thedescriptionelementResourceRefType<T>removeAllInjectionTarget()Removes allinjection-targetelementsResourceRefType<T>removeId()Removes theidattributeResourceRefType<T>removeLookupName()Removes thelookup-nameelementResourceRefType<T>removeMappedName()Removes themapped-nameelementResourceRefType<T>removeResAuth()Removes theres-authattributeResourceRefType<T>removeResRefName()Removes theres-ref-nameelementResourceRefType<T>removeResSharingScope()Removes theres-sharing-scopeattributeResourceRefType<T>removeResType()Removes theres-typeelementResourceRefType<T>resAuth(String resAuth)Sets theres-authelementResourceRefType<T>resAuth(ResAuthType resAuth)Sets theres-authelementResourceRefType<T>resRefName(String resRefName)Sets theres-ref-nameelementResourceRefType<T>resSharingScope(String resSharingScope)Sets theres-sharing-scopeelementResourceRefType<T>resSharingScope(ResSharingScopeType resSharingScope)Sets theres-sharing-scopeelementResourceRefType<T>resType(String resType)Sets theres-typeelement
-
-
-
Method Detail
-
lookupName
ResourceRefType<T> lookupName(String 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
ResourceRefType<T> mappedName(String 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>
-
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>
-
description
ResourceRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceRefType
-
getAllDescription
List<String> getAllDescription()
Returns alldescriptionelements- Returns:
- list of
description
-
removeAllDescription
ResourceRefType<T> removeAllDescription()
Removes thedescriptionelement- Returns:
- the current instance of
ResourceRefType
-
resRefName
ResourceRefType<T> resRefName(String 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
ResourceRefType<T> resType(String 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
ResourceRefType<T> resAuth(ResAuthType resAuth)
Sets theres-authelement- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
resAuth
ResourceRefType<T> resAuth(String 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
ResourceRefType<T> resSharingScope(ResSharingScopeType resSharingScope)
Sets theres-sharing-scopeelement- Parameters:
resSharingScope- the value for the elementres-sharing-scope- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
ResourceRefType<T> resSharingScope(String 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
ResourceRefType<T> id(String 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
-
-