public class ClassUtils extends java.lang.Object
| Type Params | Return Type | Name and description |
|---|---|---|
|
public static java.lang.Object |
getPropertyOrFieldValue(java.lang.Object object, java.lang.String propertyOrFieldName)This method will try to retrieve the value of the named property from the object using a corresponding getter method. |
| Methods inherited from class | Name |
|---|---|
class java.lang.Object |
java.lang.Object#equals(java.lang.Object), java.lang.Object#getClass(), java.lang.Object#hashCode(), java.lang.Object#notify(), java.lang.Object#notifyAll(), java.lang.Object#toString(), java.lang.Object#wait(), java.lang.Object#wait(long), java.lang.Object#wait(long, int) |
This method will try to retrieve the value of the named property from the object using a corresponding getter method. If no getter method is found then this method will look for the corresponding field and return its value.
object - object to inspectpropertyOrFieldName - the name of the field or property to retrieve