com.steptools.stdev
Class Enumeration

java.lang.Object
  extended by com.steptools.stdev.Enumeration
All Implemented Interfaces:
Instance, java.lang.Cloneable

public abstract class Enumeration
extends java.lang.Object
implements Instance

An instance of an EXPRESS ENUMERATION type. Each EXPRESS ENUMERATION is mapped to a class with the name of the EXPRESS defined type which extends this class. There is one static final instance of that class for each item listed in the enumeration. Each of those items is kept in a static final field of the Enumeration object.

The methods defined in this base class provide the late-bound interface.


Method Summary
 java.lang.Object clone()
          Generate a shallow copy of this object
 java.lang.String getName()
          Gets the name of the item as defined in EPXRESS.
 int getRank()
          Gets the rank of the iten as defined in EPXRESS.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.steptools.stdev.Instance
domain
 

Method Detail

getName

public java.lang.String getName()
Gets the name of the item as defined in EPXRESS.

Returns:
The name of the item.

getRank

public int getRank()
Gets the rank of the iten as defined in EPXRESS. The first item is 0, and subsequent items are one greater.

Returns:
The rank of the item.

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Description copied from interface: Instance
Generate a shallow copy of this object

Specified by:
clone in interface Instance
Overrides:
clone in class java.lang.Object
Returns:
A copy of this object
Throws:
java.lang.CloneNotSupportedException - If this method cannot be cloned. This is not thrown be any ST-Developer class, but was provided in the java.lang.Object prototype for clone().