org.openorb.constraint.evaluator
Class EnumValue

java.lang.Object
  extended by org.openorb.constraint.evaluator.EnumValue

public class EnumValue
extends java.lang.Object

This class is returned by the identifier evaluator if the result type is an enum type.

Author:
Jerome Daniel

Constructor Summary
EnumValue(int value, java.lang.String identifier)
          Constructor
 
Method Summary
 int getValueAsInt()
          Returns the numeric value
 java.lang.String getValueAsString()
          Returns the string value
 java.lang.String toString()
          ToString operation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

EnumValue

public EnumValue(int value,
                 java.lang.String identifier)
Constructor

Method Detail

getValueAsInt

public int getValueAsInt()
Returns the numeric value


getValueAsString

public java.lang.String getValueAsString()
Returns the string value


toString

public java.lang.String toString()
ToString operation

Overrides:
toString in class java.lang.Object