Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

com.thermidor.util
Class Enum  view Enum download Enum.java

java.lang.Object
  extended bycom.thermidor.util.Enum
All Implemented Interfaces:
java.io.Serializable

public abstract class Enum
extends java.lang.Object
implements java.io.Serializable

The Enum class is the abstract base class that should be used for all implementation of enumeration. It is intended that Enumerations should be generated from meta data

Version:
1.0

Field Summary
protected  java.lang.Integer id
          The id attribute should be unique for the instance.
private  java.lang.String value
          The value string that will represent the label for this ENum instance when it is externalized.
 
Constructor Summary
Enum(java.lang.String value, int id)
          Construct a new Enum instance with the specified id and value.
 
Method Summary
 int getId()
          Return the id of the member instance.
 java.lang.String toString()
          Return the value label of this enumeration memeber instance.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

id

protected java.lang.Integer id
The id attribute should be unique for the instance.


value

private transient java.lang.String value
The value string that will represent the label for this ENum instance when it is externalized.

Constructor Detail

Enum

public Enum(java.lang.String value,
            int id)
Construct a new Enum instance with the specified id and value.

Method Detail

getId

public final int getId()
Return the id of the member instance.


toString

public final java.lang.String toString()
Return the value label of this enumeration memeber instance.