public class ResourceRefTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, ResourceRefType<T>
resource-refType
xsd typeConstructor 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-name
ResourceRefType
public String getLookupName()
lookup-name
elementgetLookupName
in interface ResourceRefType<T>
lookup-name
public ResourceRefType<T> removeLookupName()
lookup-name
elementremoveLookupName
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> mappedName(String mappedName)
mapped-name
elementmappedName
in interface ResourceRefType<T>
mappedName
- the value for the element mapped-name
ResourceRefType
public String getMappedName()
mapped-name
elementgetMappedName
in interface ResourceRefType<T>
mapped-name
public ResourceRefType<T> removeMappedName()
mapped-name
elementremoveMappedName
in interface ResourceRefType<T>
ResourceRefType
public 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-target
public 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-target
public 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
objectsResourceRefType
public List<String> getAllDescription()
description
elementsgetAllDescription
in interface ResourceRefType<T>
description
public ResourceRefType<T> removeAllDescription()
description
elementremoveAllDescription
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> resRefName(String resRefName)
res-ref-name
elementresRefName
in interface ResourceRefType<T>
resRefName
- the value for the element res-ref-name
ResourceRefType
public String getResRefName()
res-ref-name
elementgetResRefName
in interface ResourceRefType<T>
res-ref-name
public ResourceRefType<T> removeResRefName()
res-ref-name
elementremoveResRefName
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> resType(String resType)
res-type
elementresType
in interface ResourceRefType<T>
resType
- the value for the element res-type
ResourceRefType
public String getResType()
res-type
elementgetResType
in interface ResourceRefType<T>
res-type
public ResourceRefType<T> removeResType()
res-type
elementremoveResType
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> resAuth(ResAuthType resAuth)
res-auth
elementresAuth
in interface ResourceRefType<T>
resAuth
- the value for the element res-auth
ResourceRefType
public ResourceRefType<T> resAuth(String resAuth)
res-auth
elementresAuth
in interface ResourceRefType<T>
resAuth
- the value for the element res-auth
ResourceRefType
public ResAuthType getResAuth()
res-auth
elementgetResAuth
in interface ResourceRefType<T>
res-auth
public String getResAuthAsString()
res-auth
elementgetResAuthAsString
in interface ResourceRefType<T>
res-auth
public ResourceRefType<T> removeResAuth()
res-auth
attributeremoveResAuth
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> resSharingScope(ResSharingScopeType resSharingScope)
res-sharing-scope
elementresSharingScope
in interface ResourceRefType<T>
resSharingScope
- the value for the element res-sharing-scope
ResourceRefType
public ResourceRefType<T> resSharingScope(String resSharingScope)
res-sharing-scope
elementresSharingScope
in interface ResourceRefType<T>
resSharingScope
- the value for the element res-sharing-scope
ResourceRefType
public ResSharingScopeType getResSharingScope()
res-sharing-scope
elementgetResSharingScope
in interface ResourceRefType<T>
res-sharing-scope
public String getResSharingScopeAsString()
res-sharing-scope
elementgetResSharingScopeAsString
in interface ResourceRefType<T>
res-sharing-scope
public ResourceRefType<T> removeResSharingScope()
res-sharing-scope
attributeremoveResSharingScope
in interface ResourceRefType<T>
ResourceRefType
public ResourceRefType<T> id(String id)
id
attributeid
in interface ResourceRefType<T>
id
- the value for the attribute id
ResourceRefType
public String getId()
id
attributegetId
in interface ResourceRefType<T>
id
public ResourceRefType<T> removeId()
id
attributeremoveId
in interface ResourceRefType<T>
ResourceRefType
Copyright © 2021 JBoss by Red Hat. All rights reserved.