public class ObjectUtil extends Object
| Modifier and Type | Method and Description |
|---|---|
static Object |
lookupAttributeProperty(Object obj,
String propertyName)
Returns the value of the property with the specified name for the given Object, or null if the Object has no such
property.
|
static Object |
lookupDeepAttributeProperty(Object value,
String propertyPath)
Looks up deep object graph attributes using a dot delimited java bean spec style path.
|
static Double |
lookupDeepNumericAttributeProperty(Object value,
String propertyPath)
Reads a numeric value from a deep object graph as per
ObjectUtil.lookupDeepAttributeProperty() |
@Nullable public static Object lookupAttributeProperty(Object obj, String propertyName)
obj - an ObjectpropertyName - the name of the property whose value should be returnedpublic static Double lookupDeepNumericAttributeProperty(Object value, String propertyPath)
ObjectUtil.lookupDeepAttributeProperty()value - The object to look intopropertyPath - the property path to searchpublic static Object lookupDeepAttributeProperty(Object value, String propertyPath)
value - The object to look intopropertyPath - the property path to searchCopyright © 2008-2014 Red Hat, Inc.. All Rights Reserved.