|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectilog.util.IlEnumInfo
public class IlEnumInfo
Each IlEnumInfo describes a subclass of IlEnum.
IlEnum| Constructor Summary | |
|---|---|
IlEnumInfo(Class clazz)
Creates the metainformation for an enum. |
|
IlEnumInfo(Class clazz,
boolean initFields)
Creates the metainformation for an enum. |
|
IlEnumInfo(Class clazz,
boolean initFields,
boolean forceOwnTable)
Creates the metainformation for an enum. |
|
| Method Summary | |
|---|---|
void |
addElement(IlEnum item)
Adds an element to this enum. |
static Enumeration |
AllEnumInfos()
Returns an enumeration of all existing enum classes. |
Enumeration |
elements()
Returns an enumeration of all existing items. |
static IlEnumInfo |
FromClass(Class clazz)
Returns the class information for an IlEnum class, given its class. |
IlEnum |
get(String name)
Returns the item with a given name, or null if none exists. |
Class |
getDefiningClass()
Returns the enum, a subclass of IlEnum. |
boolean |
has(String name)
Determines whether an enum has an item with a given name. |
void |
removeElement(IlEnum item)
Removes an element from this enum. |
int |
size()
Returns the number of items in the element table. |
String |
toString()
Returns the String representation of this IlEnumInfo's values. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public IlEnumInfo(Class clazz,
boolean initFields,
boolean forceOwnTable)
initFields - if true, public static fields of the correct type
and without value will be assigned a valueforceOwnTable - if true, this class will not share its table with
its superclass
public IlEnumInfo(Class clazz,
boolean initFields)
initFields - if true, public static fields of the correct type
and without value will be assigned a valuepublic IlEnumInfo(Class clazz)
IlEnum subclass as first argument.
By convention, this metainformation is stored in a static class variable
called metainfo.
| Method Detail |
|---|
public Class getDefiningClass()
IlEnum.
public static Enumeration AllEnumInfos()
IlEnumInfopublic static IlEnumInfo FromClass(Class clazz)
IlEnum class, given its class.
public Enumeration elements()
IlEnumpublic boolean has(String name)
public IlEnum get(String name)
null if none exists.
public int size()
public void addElement(IlEnum item)
public void removeElement(IlEnum item)
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS Documentation homepage NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||