gec.gctparser
Class EnumeratedType

java.lang.Object
  extended by gec.gctparser.EnumeratedType

public class EnumeratedType
extends java.lang.Object

Provides information for an enumerated type.

Author:
bburch

Constructor Summary
EnumeratedType()
          Null constructor.
 
Method Summary
 java.lang.String getEnumeratedTypeName()
          Return the enmerated type name.
 int getValue(java.lang.String key)
          Return the value for the key.
 void setEnumeratedTypeName(java.lang.String name)
          Set the name of the enumerated type.
 void setEnumeratedValue(java.lang.String name, int value)
          Set the value for the name.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedType

public EnumeratedType()
Null constructor.

Method Detail

getEnumeratedTypeName

public java.lang.String getEnumeratedTypeName()
Return the enmerated type name.

Returns:
String - the name of the enumerated type

getValue

public int getValue(java.lang.String key)
Return the value for the key.

Parameters:
key - String - the constant
Returns:
int - the value

setEnumeratedTypeName

public void setEnumeratedTypeName(java.lang.String name)
Set the name of the enumerated type.

Parameters:
name -

setEnumeratedValue

public void setEnumeratedValue(java.lang.String name,
                               int value)
Set the value for the name.

Parameters:
name - String - the name of the constant
value - int - the value of the constant