public class ClassUtils
extends java.lang.Object
Constructor and Description |
---|
ClassUtils() |
Modifier and Type | Method and Description |
---|---|
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.
|
public static java.lang.Object getPropertyOrFieldValue(java.lang.Object object, java.lang.String propertyOrFieldName)
object
- object to inspectpropertyOrFieldName
- the name of the field or property to retrieve