Class EnvEntryTypeImpl<T>
- java.lang.Object
-
- org.jboss.shrinkwrap.descriptor.impl.javaee7.EnvEntryTypeImpl<T>
-
- All Implemented Interfaces:
org.jboss.shrinkwrap.descriptor.api.Child<T>,EnvEntryType<T>
public class EnvEntryTypeImpl<T> extends Object implements org.jboss.shrinkwrap.descriptor.api.Child<T>, EnvEntryType<T>
This class implements theenv-entryTypexsd type
-
-
Constructor Summary
Constructors Constructor Description EnvEntryTypeImpl(T t, String nodeName, org.jboss.shrinkwrap.descriptor.spi.node.Node node)EnvEntryTypeImpl(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 InjectionTargetType<EnvEntryType<T>>createInjectionTarget()Creates a newinjection-targetelementEnvEntryType<T>description(String... values)Creates for all String objects representingdescriptionelements, a newdescriptionelementEnvEntryType<T>envEntryName(String envEntryName)Sets theenv-entry-nameelementEnvEntryType<T>envEntryType(String envEntryType)Sets theenv-entry-typeelementEnvEntryType<T>envEntryValue(String envEntryValue)Sets theenv-entry-valueelementList<String>getAllDescription()Returns alldescriptionelementsList<InjectionTargetType<EnvEntryType<T>>>getAllInjectionTarget()Returns allinjection-targetelementsStringgetEnvEntryName()Returns theenv-entry-nameelementStringgetEnvEntryType()Returns theenv-entry-typeelementStringgetEnvEntryValue()Returns theenv-entry-valueelementStringgetId()Returns theidattributeStringgetLookupName()Returns thelookup-nameelementStringgetMappedName()Returns themapped-nameelementInjectionTargetType<EnvEntryType<T>>getOrCreateInjectionTarget()If not already created, a newinjection-targetelement will be created and returned.EnvEntryType<T>id(String id)Sets theidattributeEnvEntryType<T>lookupName(String lookupName)Sets thelookup-nameelementEnvEntryType<T>mappedName(String mappedName)Sets themapped-nameelementEnvEntryType<T>removeAllDescription()Removes thedescriptionelementEnvEntryType<T>removeAllInjectionTarget()Removes allinjection-targetelementsEnvEntryType<T>removeEnvEntryName()Removes theenv-entry-nameelementEnvEntryType<T>removeEnvEntryType()Removes theenv-entry-typeelementEnvEntryType<T>removeEnvEntryValue()Removes theenv-entry-valueelementEnvEntryType<T>removeId()Removes theidattributeEnvEntryType<T>removeLookupName()Removes thelookup-nameelementEnvEntryType<T>removeMappedName()Removes themapped-nameelementTup()
-
-
-
Method Detail
-
lookupName
public EnvEntryType<T> lookupName(String lookupName)
Sets thelookup-nameelement- Specified by:
lookupNamein interfaceEnvEntryType<T>- Parameters:
lookupName- the value for the elementlookup-name- Returns:
- the current instance of
EnvEntryType
-
getLookupName
public String getLookupName()
Returns thelookup-nameelement- Specified by:
getLookupNamein interfaceEnvEntryType<T>- Returns:
- the node defined for the element
lookup-name
-
removeLookupName
public EnvEntryType<T> removeLookupName()
Removes thelookup-nameelement- Specified by:
removeLookupNamein interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
mappedName
public EnvEntryType<T> mappedName(String mappedName)
Sets themapped-nameelement- Specified by:
mappedNamein interfaceEnvEntryType<T>- Parameters:
mappedName- the value for the elementmapped-name- Returns:
- the current instance of
EnvEntryType
-
getMappedName
public String getMappedName()
Returns themapped-nameelement- Specified by:
getMappedNamein interfaceEnvEntryType<T>- Returns:
- the node defined for the element
mapped-name
-
removeMappedName
public EnvEntryType<T> removeMappedName()
Removes themapped-nameelement- Specified by:
removeMappedNamein interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
getOrCreateInjectionTarget
public InjectionTargetType<EnvEntryType<T>> getOrCreateInjectionTarget()
If not already created, a newinjection-targetelement will be created and returned. Otherwise, the first existinginjection-targetelement will be returned.- Specified by:
getOrCreateInjectionTargetin interfaceEnvEntryType<T>- Returns:
- the instance defined for the element
injection-target
-
createInjectionTarget
public InjectionTargetType<EnvEntryType<T>> createInjectionTarget()
Creates a newinjection-targetelement- Specified by:
createInjectionTargetin interfaceEnvEntryType<T>- Returns:
- the new created instance of
InjectionTargetType>
-
getAllInjectionTarget
public List<InjectionTargetType<EnvEntryType<T>>> getAllInjectionTarget()
Returns allinjection-targetelements- Specified by:
getAllInjectionTargetin interfaceEnvEntryType<T>- Returns:
- list of
injection-target
-
removeAllInjectionTarget
public EnvEntryType<T> removeAllInjectionTarget()
Removes allinjection-targetelements- Specified by:
removeAllInjectionTargetin interfaceEnvEntryType<T>- Returns:
- the current instance of
InjectionTargetType>
-
description
public EnvEntryType<T> description(String... values)
Creates for all String objects representingdescriptionelements, a newdescriptionelement- Specified by:
descriptionin interfaceEnvEntryType<T>- Parameters:
values- list ofdescriptionobjects- Returns:
- the current instance of
EnvEntryType
-
getAllDescription
public List<String> getAllDescription()
Returns alldescriptionelements- Specified by:
getAllDescriptionin interfaceEnvEntryType<T>- Returns:
- list of
description
-
removeAllDescription
public EnvEntryType<T> removeAllDescription()
Removes thedescriptionelement- Specified by:
removeAllDescriptionin interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
envEntryName
public EnvEntryType<T> envEntryName(String envEntryName)
Sets theenv-entry-nameelement- Specified by:
envEntryNamein interfaceEnvEntryType<T>- Parameters:
envEntryName- the value for the elementenv-entry-name- Returns:
- the current instance of
EnvEntryType
-
getEnvEntryName
public String getEnvEntryName()
Returns theenv-entry-nameelement- Specified by:
getEnvEntryNamein interfaceEnvEntryType<T>- Returns:
- the node defined for the element
env-entry-name
-
removeEnvEntryName
public EnvEntryType<T> removeEnvEntryName()
Removes theenv-entry-nameelement- Specified by:
removeEnvEntryNamein interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
envEntryType
public EnvEntryType<T> envEntryType(String envEntryType)
Sets theenv-entry-typeelement- Specified by:
envEntryTypein interfaceEnvEntryType<T>- Parameters:
envEntryType- the value for the elementenv-entry-type- Returns:
- the current instance of
EnvEntryType
-
getEnvEntryType
public String getEnvEntryType()
Returns theenv-entry-typeelement- Specified by:
getEnvEntryTypein interfaceEnvEntryType<T>- Returns:
- the node defined for the element
env-entry-type
-
removeEnvEntryType
public EnvEntryType<T> removeEnvEntryType()
Removes theenv-entry-typeelement- Specified by:
removeEnvEntryTypein interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
envEntryValue
public EnvEntryType<T> envEntryValue(String envEntryValue)
Sets theenv-entry-valueelement- Specified by:
envEntryValuein interfaceEnvEntryType<T>- Parameters:
envEntryValue- the value for the elementenv-entry-value- Returns:
- the current instance of
EnvEntryType
-
getEnvEntryValue
public String getEnvEntryValue()
Returns theenv-entry-valueelement- Specified by:
getEnvEntryValuein interfaceEnvEntryType<T>- Returns:
- the node defined for the element
env-entry-value
-
removeEnvEntryValue
public EnvEntryType<T> removeEnvEntryValue()
Removes theenv-entry-valueelement- Specified by:
removeEnvEntryValuein interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
id
public EnvEntryType<T> id(String id)
Sets theidattribute- Specified by:
idin interfaceEnvEntryType<T>- Parameters:
id- the value for the attributeid- Returns:
- the current instance of
EnvEntryType
-
getId
public String getId()
Returns theidattribute- Specified by:
getIdin interfaceEnvEntryType<T>- Returns:
- the value defined for the attribute
id
-
removeId
public EnvEntryType<T> removeId()
Removes theidattribute- Specified by:
removeIdin interfaceEnvEntryType<T>- Returns:
- the current instance of
EnvEntryType
-
-