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

The EnvEntry class corresponds to the 'env-entry' element in the XML DTD for EJB 1.1 deployment descriptor. 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.


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
 

Method Detail

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