public class ResourceRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>
resource-refType xsd type| Constructor and 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) |
| Modifier and Type | Method and Description |
|---|---|
InjectionTargetType<ResourceRefType<T>> |
createInjectionTarget()
Creates a new
injection-target element |
ResourceRefType<T> |
description(String... values)
Creates for all String objects representing
description elements,
a new description element |
List<String> |
getAllDescription()
Returns all
description elements |
List<InjectionTargetType<ResourceRefType<T>>> |
getAllInjectionTarget()
Returns all
injection-target elements |
String |
getId()
Returns the
id attribute |
String |
getLookupName()
Returns the
lookup-name element |
String |
getMappedName()
Returns the
mapped-name element |
InjectionTargetType<ResourceRefType<T>> |
getOrCreateInjectionTarget()
If not already created, a new
injection-target element will be created and returned. |
ResAuthType |
getResAuth()
Returns the
res-auth element |
String |
getResAuthAsString()
Returns the
res-auth element |
String |
getResRefName()
Returns the
res-ref-name element |
ResSharingScopeType |
getResSharingScope()
Returns the
res-sharing-scope element |
String |
getResSharingScopeAsString()
Returns the
res-sharing-scope element |
String |
getResType()
Returns the
res-type element |
ResourceRefType<T> |
id(String id)
Sets the
id attribute |
ResourceRefType<T> |
lookupName(String lookupName)
Sets the
lookup-name element |
ResourceRefType<T> |
mappedName(String mappedName)
Sets the
mapped-name element |
ResourceRefType<T> |
removeAllDescription()
Removes the
description element |
ResourceRefType<T> |
removeAllInjectionTarget()
Removes all
injection-target elements |
ResourceRefType<T> |
removeId()
Removes the
id attribute |
ResourceRefType<T> |
removeLookupName()
Removes the
lookup-name element |
ResourceRefType<T> |
removeMappedName()
Removes the
mapped-name element |
ResourceRefType<T> |
removeResAuth()
Removes the
res-auth attribute |
ResourceRefType<T> |
removeResRefName()
Removes the
res-ref-name element |
ResourceRefType<T> |
removeResSharingScope()
Removes the
res-sharing-scope attribute |
ResourceRefType<T> |
removeResType()
Removes the
res-type element |
ResourceRefType<T> |
resAuth(ResAuthType resAuth)
Sets the
res-auth element |
ResourceRefType<T> |
resAuth(String resAuth)
Sets the
res-auth element |
ResourceRefType<T> |
resRefName(String resRefName)
Sets the
res-ref-name element |
ResourceRefType<T> |
resSharingScope(ResSharingScopeType resSharingScope)
Sets the
res-sharing-scope element |
ResourceRefType<T> |
resSharingScope(String resSharingScope)
Sets the
res-sharing-scope element |
ResourceRefType<T> |
resType(String resType)
Sets the
res-type element |
T |
up() |
public ResourceRefTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)
public ResourceRefType<T> lookupName(String lookupName)
lookup-name elementlookupName in interface ResourceRefType<T>lookupName - the value for the element lookup-nameResourceRefTypepublic String getLookupName()
lookup-name elementgetLookupName in interface ResourceRefType<T>lookup-namepublic ResourceRefType<T> removeLookupName()
lookup-name elementremoveLookupName in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> mappedName(String mappedName)
mapped-name elementmappedName in interface ResourceRefType<T>mappedName - the value for the element mapped-nameResourceRefTypepublic String getMappedName()
mapped-name elementgetMappedName in interface ResourceRefType<T>mapped-namepublic ResourceRefType<T> removeMappedName()
mapped-name elementremoveMappedName in interface ResourceRefType<T>ResourceRefTypepublic InjectionTargetType<ResourceRefType<T>> getOrCreateInjectionTarget()
injection-target element will be created and returned.
Otherwise, the first existing injection-target element will be returned.getOrCreateInjectionTarget in interface ResourceRefType<T>injection-targetpublic InjectionTargetType<ResourceRefType<T>> createInjectionTarget()
injection-target elementcreateInjectionTarget in interface ResourceRefType<T>InjectionTargetType> public List<InjectionTargetType<ResourceRefType<T>>> getAllInjectionTarget()
injection-target elementsgetAllInjectionTarget in interface ResourceRefType<T>injection-targetpublic ResourceRefType<T> removeAllInjectionTarget()
injection-target elementsremoveAllInjectionTarget in interface ResourceRefType<T>InjectionTargetType> public ResourceRefType<T> description(String... values)
description elements,
a new description elementdescription in interface ResourceRefType<T>values - list of description objectsResourceRefTypepublic List<String> getAllDescription()
description elementsgetAllDescription in interface ResourceRefType<T>descriptionpublic ResourceRefType<T> removeAllDescription()
description elementremoveAllDescription in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> resRefName(String resRefName)
res-ref-name elementresRefName in interface ResourceRefType<T>resRefName - the value for the element res-ref-nameResourceRefTypepublic String getResRefName()
res-ref-name elementgetResRefName in interface ResourceRefType<T>res-ref-namepublic ResourceRefType<T> removeResRefName()
res-ref-name elementremoveResRefName in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> resType(String resType)
res-type elementresType in interface ResourceRefType<T>resType - the value for the element res-typeResourceRefTypepublic String getResType()
res-type elementgetResType in interface ResourceRefType<T>res-typepublic ResourceRefType<T> removeResType()
res-type elementremoveResType in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> resAuth(ResAuthType resAuth)
res-auth elementresAuth in interface ResourceRefType<T>resAuth - the value for the element res-authResourceRefTypepublic ResourceRefType<T> resAuth(String resAuth)
res-auth elementresAuth in interface ResourceRefType<T>resAuth - the value for the element res-authResourceRefTypepublic ResAuthType getResAuth()
res-auth elementgetResAuth in interface ResourceRefType<T>res-authpublic String getResAuthAsString()
res-auth elementgetResAuthAsString in interface ResourceRefType<T>res-authpublic ResourceRefType<T> removeResAuth()
res-auth attributeremoveResAuth in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> resSharingScope(ResSharingScopeType resSharingScope)
res-sharing-scope elementresSharingScope in interface ResourceRefType<T>resSharingScope - the value for the element res-sharing-scopeResourceRefTypepublic ResourceRefType<T> resSharingScope(String resSharingScope)
res-sharing-scope elementresSharingScope in interface ResourceRefType<T>resSharingScope - the value for the element res-sharing-scopeResourceRefTypepublic ResSharingScopeType getResSharingScope()
res-sharing-scope elementgetResSharingScope in interface ResourceRefType<T>res-sharing-scopepublic String getResSharingScopeAsString()
res-sharing-scope elementgetResSharingScopeAsString in interface ResourceRefType<T>res-sharing-scopepublic ResourceRefType<T> removeResSharingScope()
res-sharing-scope attributeremoveResSharingScope in interface ResourceRefType<T>ResourceRefTypepublic ResourceRefType<T> id(String id)
id attributeid in interface ResourceRefType<T>id - the value for the attribute idResourceRefTypepublic String getId()
id attributegetId in interface ResourceRefType<T>idpublic ResourceRefType<T> removeId()
id attributeremoveId in interface ResourceRefType<T>ResourceRefTypeCopyright © 2021 JBoss by Red Hat. All rights reserved.