org.objectweb.jonas_web.deployment.api
Class EnvEntryDesc
java.lang.Object
|
+--org.objectweb.jonas_web.deployment.api.EnvEntryDesc
- public class EnvEntryDesc
- extends java.lang.Object
Class that represents an env-entry tag.
- Author:
- Ludovic Bert, Florent Benoit
Constructor Summary |
EnvEntryDesc(org.objectweb.jonas_web.deployment.xml.EnvEntry env)
Construct a descriptor for an env-entry tag. |
Method Summary |
java.lang.String |
getName()
Get the name of the environemt entry. |
java.lang.Class |
getType()
Get the fully-qualified Java type of the environemt entry.
|
java.lang.Object |
getValue()
Get the value of the environment entry. |
boolean |
hasValue()
Assessor for existence of value for the descriptor |
java.lang.String |
toString()
String representation of the object for test purpose |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
EnvEntryDesc
public EnvEntryDesc(org.objectweb.jonas_web.deployment.xml.EnvEntry env)
throws WebContainerDeploymentDescException
- Construct a descriptor for an env-entry tag.
- Parameters:
env
- the env-entry resulting of the xml parsing.- Throws:
WebContainerDeploymentDescException
- when missing information for
creating the EnvEntryDesc.
getName
public java.lang.String getName()
- Get the name of the environemt entry.
- Returns:
- Name for environment entry
getType
public java.lang.Class getType()
- Get the fully-qualified Java type of the environemt entry.
Type is needed since value is optional
The possibles values are:
java.lang.Boolean
java.lang.String
java.lang.Integer
java.lang.Double
java.lang.Byte
java.lang.Short
java.lang.Long
java.lang.Float
- Returns:
- Class the fully-qualified Java type of the environemt entry.
hasValue
public boolean hasValue()
- Assessor for existence of value for the descriptor
- Returns:
- true if a value is available
getValue
public java.lang.Object getValue()
- Get the value of the environment entry.
- Returns:
- value for the environment entry (must be set)
toString
public java.lang.String toString()
- String representation of the object for test purpose
- Overrides:
toString
in class java.lang.Object
- Returns:
- String representation of this object