|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.javaee6.ResourceEnvRefTypeImpl<T>
public class ResourceEnvRefTypeImpl<T>
This class implements the resource-env-refType
xsd type
Original Documentation:
[
The resource-env-refType is used to define
resource-env-ref elements. It contains a declaration of a
Deployment Component's reference to an administered object
associated with a resource in the Deployment Component's
environment. It consists of an optional description, the
resource environment reference name, and an optional
indication of the resource environment reference type
expected by the Deployment Component code.
It also includes optional elements to define injection of
the named resource into fields or JavaBeans properties.
The resource environment type must be supplied unless an
injection target is specified, in which case the type
of the target is used. If both are specified, the type
must be assignment compatible with the type of the injection
target.
Example:
Constructor Summary | |
---|---|
ResourceEnvRefTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
ResourceEnvRefTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node,
org.jboss.shrinkwrap.descriptor.spi.Node childNode)
|
Method Summary | |
---|---|
java.util.List<java.lang.String> |
getDescriptionList()
Returns all description elements |
java.util.List<InjectionTargetType<ResourceEnvRefType<T>>> |
getInjectionTargetList()
Returns all injection-target elements |
java.lang.String |
getLookupName()
Returns the lookup-name element |
java.lang.String |
getMappedName()
Returns the mapped-name element |
java.lang.String |
getResourceEnvRefName()
Returns the resource-env-ref-name element |
java.lang.String |
getResourceEnvRefType()
Returns the resource-env-ref-type element |
InjectionTargetType<ResourceEnvRefType<T>> |
injectionTarget()
Returns the injection-target element |
ResourceEnvRefType<T> |
removeAllDescription()
Removes the description element |
ResourceEnvRefType<T> |
removeAllInjectionTarget()
Removes all injection-target elements |
ResourceEnvRefType<T> |
removeLookupName()
Removes the lookup-name element |
ResourceEnvRefType<T> |
removeMappedName()
Removes the mapped-name element |
ResourceEnvRefType<T> |
removeResourceEnvRefName()
Removes the resource-env-ref-name element |
ResourceEnvRefType<T> |
removeResourceEnvRefType()
Removes the resource-env-ref-type element |
ResourceEnvRefType<T> |
setDescription(java.lang.String description)
Creates a new description element |
ResourceEnvRefType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
ResourceEnvRefType<T> |
setLookupName(java.lang.String lookupName)
If not already created, a new lookup-name element with the given value will be created. |
ResourceEnvRefType<T> |
setMappedName(java.lang.String mappedName)
If not already created, a new mapped-name element with the given value will be created. |
ResourceEnvRefType<T> |
setResourceEnvRefName(java.lang.String resourceEnvRefName)
If not already created, a new resource-env-ref-name element with the given value will be created. |
ResourceEnvRefType<T> |
setResourceEnvRefType(java.lang.String resourceEnvRefType)
If not already created, a new resource-env-ref-type element with the given value will be created. |
T |
up()
|
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ResourceEnvRefTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node)
public ResourceEnvRefTypeImpl(T t, java.lang.String nodeName, org.jboss.shrinkwrap.descriptor.spi.Node node, org.jboss.shrinkwrap.descriptor.spi.Node childNode)
Method Detail |
---|
public T up()
up
in interface org.jboss.shrinkwrap.descriptor.api.Child<T>
public ResourceEnvRefType<T> setLookupName(java.lang.String lookupName)
lookup-name
element with the given value will be created.
Otherwise, the existing lookup-name
element will be updated with the given value.
setLookupName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public ResourceEnvRefType<T> removeLookupName()
lookup-name
element
removeLookupName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public java.lang.String getLookupName()
lookup-name
element
getLookupName
in interface ResourceEnvRefType<T>
lookup-name
public ResourceEnvRefType<T> setMappedName(java.lang.String mappedName)
mapped-name
element with the given value will be created.
Otherwise, the existing mapped-name
element will be updated with the given value.
setMappedName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public ResourceEnvRefType<T> removeMappedName()
mapped-name
element
removeMappedName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public java.lang.String getMappedName()
mapped-name
element
getMappedName
in interface ResourceEnvRefType<T>
mapped-name
public ResourceEnvRefType<T> removeAllInjectionTarget()
injection-target
elements
removeAllInjectionTarget
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public InjectionTargetType<ResourceEnvRefType<T>> injectionTarget()
injection-target
element
injectionTarget
in interface ResourceEnvRefType<T>
injection-target
public java.util.List<InjectionTargetType<ResourceEnvRefType<T>>> getInjectionTargetList()
injection-target
elements
getInjectionTargetList
in interface ResourceEnvRefType<T>
injection-target
public ResourceEnvRefType<T> setDescription(java.lang.String description)
description
element
setDescription
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public ResourceEnvRefType<T> setDescriptionList(java.lang.String... values)
description
elements,
a new description
element
setDescriptionList
in interface ResourceEnvRefType<T>
list
- of description
objects
ResourceEnvRefType
public ResourceEnvRefType<T> removeAllDescription()
description
element
removeAllDescription
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public java.util.List<java.lang.String> getDescriptionList()
description
elements
getDescriptionList
in interface ResourceEnvRefType<T>
description
public ResourceEnvRefType<T> setResourceEnvRefName(java.lang.String resourceEnvRefName)
resource-env-ref-name
element with the given value will be created.
Otherwise, the existing resource-env-ref-name
element will be updated with the given value.
setResourceEnvRefName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public ResourceEnvRefType<T> removeResourceEnvRefName()
resource-env-ref-name
element
removeResourceEnvRefName
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public java.lang.String getResourceEnvRefName()
resource-env-ref-name
element
getResourceEnvRefName
in interface ResourceEnvRefType<T>
resource-env-ref-name
public ResourceEnvRefType<T> setResourceEnvRefType(java.lang.String resourceEnvRefType)
resource-env-ref-type
element with the given value will be created.
Otherwise, the existing resource-env-ref-type
element will be updated with the given value.
setResourceEnvRefType
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public ResourceEnvRefType<T> removeResourceEnvRefType()
resource-env-ref-type
element
removeResourceEnvRefType
in interface ResourceEnvRefType<T>
ResourceEnvRefType
public java.lang.String getResourceEnvRefType()
resource-env-ref-type
element
getResourceEnvRefType
in interface ResourceEnvRefType<T>
resource-env-ref-type
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |