org.objectweb.jonas_lib.deployment.api
Class EnvEntryDesc

java.lang.Object
  extended by org.objectweb.jonas_lib.deployment.api.EnvEntryDesc

public class EnvEntryDesc
extends java.lang.Object

This class represents the description of an EnvEntry object

Author:
Christophe Ney, Florent Benoit

Constructor Summary
EnvEntryDesc(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
 

Constructor Detail

EnvEntryDesc

public EnvEntryDesc(EnvEntry env)
             throws DeploymentDescException
Construct a descriptor for an env-entry tag.

Parameters:
env - the env-entry resulting of the xml parsing.
Throws:
DeploymentDescException - when missing information for creating the EnvEntryDesc.
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.Character 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