edu.umn.cs.crisys
Class RSM.Enum

java.lang.Object
  |
  +--edu.umn.cs.crisys.RSM.Enum
Direct Known Subclasses:
ASW.AltitudeQualityType, ASW.DOIStatusType, ASW.InhibitType
Enclosing class:
RSM

public abstract static class RSM.Enum
extends java.lang.Object

Base class for RSML-e enumeration types. A typical way to create an enumeration type is to derive a final class with a private constructor and define public final objects that correspond to distinct enumeration values.


Field Summary
 java.lang.String id
          Descriptive string denoting an enumeration value.
 
Constructor Summary
protected RSM.Enum(java.lang.String myId)
          Constructor.
 
Method Summary
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

public final java.lang.String id
Descriptive string denoting an enumeration value. (write-once field).
Constructor Detail

RSM.Enum

protected RSM.Enum(java.lang.String myId)
Constructor. Protected so that only derived classes, which are concrete enumeration types, can instantiate enum constant objects.
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object
Returns:
Descriptive text for this enumeration value.