Package com.ribs
Class RBKeyChain
java.lang.Object
com.ribs.RBKeyChain
This class contains static utility methods for generically getting and setting values on any object
 using a key chain string.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionstatic ObjectgetValueForKey(Object anObject, 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 voidsetValueForKey(Object anObject, String aKey, Object aValue) Sets a value in given object for given key.
- 
Field Details- 
delim- See Also:
 
- 
delimRegex- See Also:
 
 
- 
- 
Constructor Details- 
RBKeyChainpublic RBKeyChain()
 
- 
- 
Method Details- 
getValueForKeyGet a value from an object, given a dotted path of property names, for instance: "Model.SelectedObject" returns the value for: anObject.getModel().getSelectedObject()- Parameters:
- anObject- the object to get a value from
- path- a dotted path of property names, each value is found, and the next property is extracted from the result, and so on.
- Returns:
- the reuslting value or null, if any null value was found on the path.
 
- 
setValueForKeySets a value in given object for given key.- Parameters:
- anObject-
- aKey-
- aValue-
 
 
-