org.objectweb.jonas_ejb.deployment.api
Class EnvEntryDesc
java.lang.Object
|
+--org.objectweb.jonas_ejb.deployment.api.EnvEntryDesc
- public class EnvEntryDesc
- extends java.lang.Object
Class to hold meta-information related to an env-entry
The env-entry element contains the declaration of an enterprise bean's environment entry.
The declaration consists of:
- an optional description (which is not taken into account here),
- the name of the environment entry,
- the type of the environment entry,
- and an optional value.
- Author:
- Helene Joanin, Christophe Ney [cney@batisseurs.com]
Constructor Summary |
EnvEntryDesc(org.objectweb.jonas_ejb.deployment.xml.EnvEntry env)
constructor to be used by parent node |
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_ejb.deployment.xml.EnvEntry env)
throws DeploymentDescException
- constructor to be used by parent node
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
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