org.ow2.jonas.deployment.common
Class EnvEntryDesc

java.lang.Object
  extended by org.ow2.jonas.deployment.common.EnvEntryDesc
All Implemented Interfaces:
IEnvEntryDesc

public class EnvEntryDesc
extends Object
implements IEnvEntryDesc

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
 String getName()
          Get the name of the environemt entry.
 Class getType()
          Get the fully-qualified Java type of the environemt entry.
 Object getValue()
          Get the value of the environment entry.
 boolean hasValue()
          Assessor for existence of value for the descriptor.
 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 String getName()
Description copied from interface: IEnvEntryDesc
Get the name of the environemt entry.

Specified by:
getName in interface IEnvEntryDesc
Returns:
Name for environment entry

getType

public Class getType()
Description copied from interface: IEnvEntryDesc
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

Specified by:
getType in interface IEnvEntryDesc
Returns:
Class the fully-qualified Java type of the environemt entry.

hasValue

public boolean hasValue()
Description copied from interface: IEnvEntryDesc
Assessor for existence of value for the descriptor.

Specified by:
hasValue in interface IEnvEntryDesc
Returns:
true if a value is available

getValue

public Object getValue()
Description copied from interface: IEnvEntryDesc
Get the value of the environment entry.

Specified by:
getValue in interface IEnvEntryDesc
Returns:
value for the environment entry (must be set)

toString

public String toString()
String representation of the object for test purpose

Overrides:
toString in class Object
Returns:
String representation of this object


Copyright © 2010 OW2 Consortium. All Rights Reserved.