Class ResourceRefTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.j2ee14.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 theresource-refTypexsd type
-
-
Constructor Summary
Constructors Constructor Description ResourceRefTypeImpl(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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceRefType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementList<String>getAllDescription()Returns alldescriptionelementsStringgetId()Returns theidattributeResAuthTypegetResAuth()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>removeAllDescription()Removes thedescriptionelementResourceRefType<T>removeId()Removes theidattributeResourceRefType<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-typeelementTup()
-
-
-
Method Detail
-
description
public ResourceRefType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceResourceRefType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
ResourceRefType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceResourceRefType<T>- Returns:
- list of
description
-
removeAllDescription
public ResourceRefType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resRefName
public ResourceRefType<T> resRefName(String 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
public String getResRefName()
Returns theres-ref-nameelement- Specified by:
getResRefNamein interfaceResourceRefType<T>- Returns:
- the node defined for the element
res-ref-name
-
removeResRefName
public ResourceRefType<T> removeResRefName()
Removes theres-ref-nameelement- Specified by:
removeResRefNamein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resType
public ResourceRefType<T> resType(String resType)
Sets theres-typeelement- Specified by:
resTypein interfaceResourceRefType<T>- Parameters:
resType- the value for the elementres-type- Returns:
- the current instance of
ResourceRefType
-
getResType
public String getResType()
Returns theres-typeelement- Specified by:
getResTypein interfaceResourceRefType<T>- Returns:
- the node defined for the element
res-type
-
removeResType
public ResourceRefType<T> removeResType()
Removes theres-typeelement- Specified by:
removeResTypein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resAuth
public ResourceRefType<T> resAuth(ResAuthType resAuth)
Sets theres-authelement- Specified by:
resAuthin interfaceResourceRefType<T>- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
resAuth
public ResourceRefType<T> resAuth(String resAuth)
Sets theres-authelement- Specified by:
resAuthin interfaceResourceRefType<T>- Parameters:
resAuth- the value for the elementres-auth- Returns:
- the current instance of
ResourceRefType
-
getResAuth
public ResAuthType getResAuth()
Returns theres-authelement- Specified by:
getResAuthin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-auth
-
getResAuthAsString
public String getResAuthAsString()
Returns theres-authelement- Specified by:
getResAuthAsStringin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-auth
-
removeResAuth
public ResourceRefType<T> removeResAuth()
Removes theres-authattribute- Specified by:
removeResAuthin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
resSharingScope
public ResourceRefType<T> resSharingScope(ResSharingScopeType 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
public ResourceRefType<T> resSharingScope(String 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
public ResSharingScopeType getResSharingScope()
Returns theres-sharing-scopeelement- Specified by:
getResSharingScopein interfaceResourceRefType<T>- Returns:
- the value found for the element
res-sharing-scope
-
getResSharingScopeAsString
public String getResSharingScopeAsString()
Returns theres-sharing-scopeelement- Specified by:
getResSharingScopeAsStringin interfaceResourceRefType<T>- Returns:
- the value found for the element
res-sharing-scope
-
removeResSharingScope
public ResourceRefType<T> removeResSharingScope()
Removes theres-sharing-scopeattribute- Specified by:
removeResSharingScopein interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
id
public ResourceRefType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceResourceRefType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
ResourceRefType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceResourceRefType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public ResourceRefType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceResourceRefType<T>- Returns:
- the current instance of
ResourceRefType
-
-