|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jguild.jrpm.io.constant.EnumDelegate
Abstract Enum class.
Field Summary | |
static int |
_UNKNOWN
|
Constructor Summary | |
EnumDelegate(java.lang.Class refClass,
long id,
java.lang.String name,
EnumIf realEnum)
Creates a new EnumDelegate object. |
Method Summary | |
static boolean |
containsEnumId(java.lang.Class refClass,
java.lang.Long id)
Check if this enum class contains a enum of a specified id |
static EnumIf |
getEnumById(java.lang.Class refClass,
long id)
Get a enum by id |
static EnumIf |
getEnumByName(java.lang.Class refClass,
java.lang.String name)
Get a enum by name |
static java.lang.String[] |
getEnumNames(java.lang.Class refClass)
Get all defined enums of this class |
long |
getId()
Get the id of this enum object |
java.lang.String |
getName()
Get the name of this enum object |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public static final int _UNKNOWN
Constructor Detail |
public EnumDelegate(java.lang.Class refClass, long id, java.lang.String name, EnumIf realEnum)
refClass
- Referencing class for this enum (the class that implements the enum)id
- A id for this enumname
- A name for this enumrealEnum
- The actual reference of the enum object (the real enum object that implements EnumIf)Method Detail |
public static EnumIf getEnumById(java.lang.Class refClass, long id)
refClass
- referencing classid
- The id of the enum
public static EnumIf getEnumByName(java.lang.Class refClass, java.lang.String name)
refClass
- referencing classname
- The name of the enum
public static java.lang.String[] getEnumNames(java.lang.Class refClass)
refClass
- referencing class
public long getId()
EnumIf
getId
in interface EnumIf
public java.lang.String getName()
EnumIf
getName
in interface EnumIf
public static boolean containsEnumId(java.lang.Class refClass, java.lang.Long id)
refClass
- referencing classid
- The id of the enum
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |