|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.reportmill.base.RMKey
public class RMKey
This class provides an optimized convenience for getting named values from arbitrary objects.
Nested Class Summary | |
---|---|
static interface |
RMKey.Get
This is interface is implemented by objects that can get key values themselves. |
static interface |
RMKey.GetSet
This is interface is implemented by objects that can get/set key value themselves. |
static class |
RMKey.KeyAccessor
KeyAccessor - enclosed class for actually getting/setting values for a given object (class) and key. |
Constructor Summary | |
---|---|
RMKey()
|
Method Summary | |
---|---|
static RMKey.KeyAccessor |
getAccessor(java.lang.Object anObj,
java.lang.String aKey)
Returns the accessor object for a given object (class) and key. |
static java.lang.String |
getAttributeName(java.lang.String aKey)
Returns the attribute name for a key (stripping is/get and capitolizing first letter). |
static java.lang.Object |
getValue(java.lang.Object anObj,
java.lang.String aKey)
Returns a value for given object and key. |
static boolean |
hasKey(java.lang.Object anObj,
java.lang.String aKey)
Returns whether given object has an accessor for given key. |
static int |
intValueForKey(java.lang.Object anObj,
java.lang.String aKey)
Returns an int value for a key. |
static boolean |
isKey(java.lang.String aString)
Returns whether given string is a valid key (starts with letter and only contains letters, digits, white space and under bars). |
static boolean |
setValue(java.lang.Object anObj,
java.lang.String aKey,
java.lang.Object aValue)
Sets a value for given object and key and value. |
static java.lang.String |
stringValueForKey(java.lang.Object anObj,
java.lang.String aKey)
Returns a string value for a key. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RMKey()
Method Detail |
---|
public static boolean isKey(java.lang.String aString)
public static java.lang.Object getValue(java.lang.Object anObj, java.lang.String aKey)
public static boolean setValue(java.lang.Object anObj, java.lang.String aKey, java.lang.Object aValue)
public static boolean hasKey(java.lang.Object anObj, java.lang.String aKey)
public static java.lang.String stringValueForKey(java.lang.Object anObj, java.lang.String aKey)
public static int intValueForKey(java.lang.Object anObj, java.lang.String aKey)
public static RMKey.KeyAccessor getAccessor(java.lang.Object anObj, java.lang.String aKey)
public static java.lang.String getAttributeName(java.lang.String aKey)
|
ReportMill 11 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |