public class RMKey
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
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 and Description |
---|
RMKey() |
Modifier and Type | Method and Description |
---|---|
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 |
getStandard(java.lang.String aKey)
Returns the key in a standard format (strip is/get prefix and start with capital 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.
|
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 getStandard(java.lang.String aKey)