java.lang.Object
com.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. |
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.
Enum
public Enum(java.lang.String value,
int id)
- Construct a new Enum instance with the specified id and value.
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.