|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jboss.shrinkwrap.descriptor.impl.javaee6.EnvEntryTypeImpl<T>
public class EnvEntryTypeImpl<T>
This class implements the env-entryType xsd type
Original Documentation:
The env-entryType is used to declare an application's
environment entry. The declaration consists of an optional
description, the name of the environment entry, a type
(optional if the value is injected, otherwise required), and
an optional value.
It also includes optional elements to define injection of
the named resource into fields or JavaBeans properties.
If a value is not specified and injection is requested,
no injection will occur and no entry of the specified name
will be created. This allows an initial value to be
specified in the source code without being incorrectly
changed when no override has been specified.
If a value is not specified and no injection is requested,
a value must be supplied during deployment.
This type is used by env-entry elements.
| Constructor Summary | |
|---|---|
EnvEntryTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
|
|
EnvEntryTypeImpl(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.lang.String |
getEnvEntryName()
Returns the env-entry-name element |
java.lang.String |
getEnvEntryType()
Returns the env-entry-type element |
java.lang.String |
getEnvEntryValue()
Returns the env-entry-value element |
java.util.List<InjectionTargetType<EnvEntryType<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 |
InjectionTargetType<EnvEntryType<T>> |
injectionTarget()
Returns the injection-target element |
EnvEntryType<T> |
removeAllDescription()
Removes the description element |
EnvEntryType<T> |
removeAllInjectionTarget()
Removes all injection-target elements |
EnvEntryType<T> |
removeEnvEntryName()
Removes the env-entry-name element |
EnvEntryType<T> |
removeEnvEntryType()
Removes the env-entry-type element |
EnvEntryType<T> |
removeEnvEntryValue()
Removes the env-entry-value element |
EnvEntryType<T> |
removeLookupName()
Removes the lookup-name element |
EnvEntryType<T> |
removeMappedName()
Removes the mapped-name element |
EnvEntryType<T> |
setDescription(java.lang.String description)
Creates a new description element |
EnvEntryType<T> |
setDescriptionList(java.lang.String... values)
Creates for all String objects representing description elements,
a new description element |
EnvEntryType<T> |
setEnvEntryName(java.lang.String envEntryName)
If not already created, a new env-entry-name element with the given value will be created. |
EnvEntryType<T> |
setEnvEntryType(java.lang.String envEntryType)
If not already created, a new env-entry-type element with the given value will be created. |
EnvEntryType<T> |
setEnvEntryValue(java.lang.String envEntryValue)
If not already created, a new env-entry-value element with the given value will be created. |
EnvEntryType<T> |
setLookupName(java.lang.String lookupName)
If not already created, a new lookup-name element with the given value will be created. |
EnvEntryType<T> |
setMappedName(java.lang.String mappedName)
If not already created, a new mapped-name 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 EnvEntryTypeImpl(T t,
java.lang.String nodeName,
org.jboss.shrinkwrap.descriptor.spi.Node node)
public EnvEntryTypeImpl(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 EnvEntryType<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 EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> removeLookupName()
lookup-name element
removeLookupName in interface EnvEntryType<T>EnvEntryTypepublic java.lang.String getLookupName()
lookup-name element
getLookupName in interface EnvEntryType<T>lookup-namepublic EnvEntryType<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 EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> removeMappedName()
mapped-name element
removeMappedName in interface EnvEntryType<T>EnvEntryTypepublic java.lang.String getMappedName()
mapped-name element
getMappedName in interface EnvEntryType<T>mapped-namepublic EnvEntryType<T> removeAllInjectionTarget()
injection-target elements
removeAllInjectionTarget in interface EnvEntryType<T>EnvEntryTypepublic InjectionTargetType<EnvEntryType<T>> injectionTarget()
injection-target element
injectionTarget in interface EnvEntryType<T>injection-targetpublic java.util.List<InjectionTargetType<EnvEntryType<T>>> getInjectionTargetList()
injection-target elements
getInjectionTargetList in interface EnvEntryType<T>injection-targetpublic EnvEntryType<T> setDescription(java.lang.String description)
description element
setDescription in interface EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> setDescriptionList(java.lang.String... values)
description elements,
a new description element
setDescriptionList in interface EnvEntryType<T>list - of description objects
EnvEntryTypepublic EnvEntryType<T> removeAllDescription()
description element
removeAllDescription in interface EnvEntryType<T>EnvEntryTypepublic java.util.List<java.lang.String> getDescriptionList()
description elements
getDescriptionList in interface EnvEntryType<T>descriptionpublic EnvEntryType<T> setEnvEntryName(java.lang.String envEntryName)
env-entry-name element with the given value will be created.
Otherwise, the existing env-entry-name element will be updated with the given value.
setEnvEntryName in interface EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> removeEnvEntryName()
env-entry-name element
removeEnvEntryName in interface EnvEntryType<T>EnvEntryTypepublic java.lang.String getEnvEntryName()
env-entry-name element
getEnvEntryName in interface EnvEntryType<T>env-entry-namepublic EnvEntryType<T> setEnvEntryType(java.lang.String envEntryType)
env-entry-type element with the given value will be created.
Otherwise, the existing env-entry-type element will be updated with the given value.
setEnvEntryType in interface EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> removeEnvEntryType()
env-entry-type element
removeEnvEntryType in interface EnvEntryType<T>EnvEntryTypepublic java.lang.String getEnvEntryType()
env-entry-type element
getEnvEntryType in interface EnvEntryType<T>env-entry-typepublic EnvEntryType<T> setEnvEntryValue(java.lang.String envEntryValue)
env-entry-value element with the given value will be created.
Otherwise, the existing env-entry-value element will be updated with the given value.
setEnvEntryValue in interface EnvEntryType<T>EnvEntryTypepublic EnvEntryType<T> removeEnvEntryValue()
env-entry-value element
removeEnvEntryValue in interface EnvEntryType<T>EnvEntryTypepublic java.lang.String getEnvEntryValue()
env-entry-value element
getEnvEntryValue in interface EnvEntryType<T>env-entry-value
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||