org.jcon.data
Class EnumeratedType

java.lang.Object
  extended by org.jcon.data.EnumeratedType
Direct Known Subclasses:
CodedType, JobStatus, Phase, SpanType, StakeStatus

public abstract class EnumeratedType
extends java.lang.Object

An enumerated type; i.e., one that has a limited set of discrete values.


Constructor Summary
EnumeratedType()
           
 
Method Summary
static EnumeratedType defaultValue()
          Returns default member of the type, or null if there is none.
static java.lang.Class enumeratedTypeSuperClass()
           
static EnumeratedType getDefaultValueFor(java.lang.Class enumeratedTypeClass)
          Yet another handy way to avoid all those try/catch blocks when introspecting.
static EnumeratedType getDefaultValueFor(java.lang.String enumeratedTypeClassName)
          Yet another even handier way to avoid all those try/catch blocks when introspecting.
static java.util.Iterator getMembersFor(java.lang.Class enumeratedTypeClass)
          Handy way to avoid all those try/catch blocks when introspecting.
static java.util.Iterator getMembersFor(java.lang.String enumeratedTypeClassName)
          Handier way to avoid all those try/catch blocks when introspecting.
static java.util.Iterator members()
          Returns list of members of the type.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EnumeratedType

public EnumeratedType()
Method Detail

members

public static java.util.Iterator members()
Returns list of members of the type. Subclasses should override this.


defaultValue

public static EnumeratedType defaultValue()
Returns default member of the type, or null if there is none. Subclasses should override this.


enumeratedTypeSuperClass

public static java.lang.Class enumeratedTypeSuperClass()

getMembersFor

public static java.util.Iterator getMembersFor(java.lang.Class enumeratedTypeClass)
Handy way to avoid all those try/catch blocks when introspecting.


getMembersFor

public static java.util.Iterator getMembersFor(java.lang.String enumeratedTypeClassName)
Handier way to avoid all those try/catch blocks when introspecting.


getDefaultValueFor

public static EnumeratedType getDefaultValueFor(java.lang.Class enumeratedTypeClass)
Yet another handy way to avoid all those try/catch blocks when introspecting.


getDefaultValueFor

public static EnumeratedType getDefaultValueFor(java.lang.String enumeratedTypeClassName)
Yet another even handier way to avoid all those try/catch blocks when introspecting.