public class RBKeyChain
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
delim |
static java.lang.String |
delimRegex |
Constructor and Description |
---|
RBKeyChain() |
Modifier and Type | Method and Description |
---|---|
static java.lang.Object |
getValueForKey(java.lang.Object anObject,
java.lang.String aKey)
Get a value from an object, given a dotted path of property names,
for instance: "Model.SelectedObject" returns the value for:
anObject.getModel().getSelectedObject()
|
static void |
setValueForKey(java.lang.Object anObject,
java.lang.String aKey,
java.lang.Object aValue)
Sets a value in given object for given key.
|
public static final java.lang.String delim
public static final java.lang.String delimRegex
public static java.lang.Object getValueForKey(java.lang.Object anObject, java.lang.String aKey)
anObject
- the object to get a value frompath
- a dotted path of property names, each value is found,
and the next property is extracted from the result, and so on.public static void setValueForKey(java.lang.Object anObject, java.lang.String aKey, java.lang.Object aValue)
anObject
- aKey
- aValue
-