#include <Enumeration.h>
Inheritance diagram for acdk::lang::reflect::Enumeration:
Public Member Functions | |
Enumeration (const acdk::lang::dmi::ClazzEnumInfo *ei) | |
internal constructor | |
RString | getEnumNameForValue (int value) |
return the symbolic name (without namespace) for the given value. | |
virtual dmi::MetaInfo * | getMetaInfo () |
implemented interface for MetaObject | |
const acdk::lang::dmi::ClazzEnumInfo * | getClazzEnumInfo () |
virtual RString | getName () |
returns the ClassName for this object by default | |
virtual bool | equals (IN(RObject) obj) |
Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance. | |
int | compareTo (IN(REnumeration) other) |
int | compareTo (IN(RObject) other) |
compares t objects Object::compareTo() UnsupportedOperationException | |
virtual int | hashCode () |
virtual RString | toString () |
return a string representation of this object Object::toString() return getName() by default | |
virtual RString | toIndentifier () |
virtual RString | toTypeString (int format=acdk::lang::dmi::TpFtFormatStandard) |
print the information | |
REnumerationValueArray | getValues () |
Static Public Member Functions | |
REnumeration | getEnumeration (IN(RString) enumName, IN(RString) namesp) |
return the Enumeration with given name. | |
REnumerationValue | getEnumerationValue (IN(RString) enumName, IN(RString) namesp) |
return the Enumeration with given name. | |
RString | getEnumNameForValue (IN(RString) enumName, int value) |
return the symbolic name (without namespace) for the given value. | |
REnumerationArray | getEnumerations () |
returns all registered Enumerations | |
Private Attributes | |
const acdk::lang::dmi::ClazzEnumInfo * | _enumInfo |
|
internal constructor
|
|
compares t objects Object::compareTo() UnsupportedOperationException
Reimplemented from acdk::lang::Object. |
|
|
|
Normally check for equality (not identity) Object::equals() is true only if both objects are the same instance.
Reimplemented from acdk::lang::Object. |
|
|
|
return the Enumeration with given name.
|
|
returns all registered Enumerations
|
|
return the Enumeration with given name.
|
|
return the symbolic name (without namespace) for the given value. return Nil if no information for enumName can be found or this enumeration has no such value getEnumNameForValue |
|
return the symbolic name (without namespace) for the given value. return Nil if this enumeration has no such value If an enumeration multiple enum values has the same integer value this method returns the first found. |
|
implemented interface for MetaObject
Reimplemented from acdk::lang::dmi::MetaObject. |
|
returns the ClassName for this object by default
Reimplemented from acdk::lang::Object. |
|
|
|
Reimplemented from acdk::lang::Object. |
|
|
|
return a string representation of this object Object::toString() return getName() by default
Reimplemented from acdk::lang::Object. |
|
print the information
Implements acdk::lang::dmi::MetaObject. |
|
|