|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jtheque.utils.bean.ReflectionUtils
public final class ReflectionUtils
An utility class for Reflection.
Method Summary | |
---|---|
static String |
getGetter(String property)
Return the name of the getter for the specified property name. |
static Method |
getGetterMethod(Object bean,
String property)
Return the getter method for the property of the specified bean. |
static PropertyDescriptor[] |
getProperties(Object bean)
Return all the properties of a bean. |
static Object |
getProperty(Object bean,
PropertyDescriptor property)
Return the value of a property. |
static Object |
getProperty(Object bean,
String property)
Return the value of a property. |
static Object |
getPropertyValue(Object bean,
String property)
Return the value of the property of the specified bean. |
static String |
getSetter(String property)
Return the name of the setter for the specified property name. |
static Method |
getSetterMethod(Object bean,
String property)
Return the setter method for the property of the specified bean. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static String getGetter(String property)
property
- The property name.
public static Method getGetterMethod(Object bean, String property)
bean
- The bean to get the property from.property
- The property name.
public static String getSetter(String property)
property
- The property name.
public static Method getSetterMethod(Object bean, String property)
bean
- The bean to set the property to.property
- The property name.
public static Object getPropertyValue(Object bean, String property)
bean
- The bean to get the value from.property
- The property name.
public static Object getProperty(Object bean, PropertyDescriptor property)
bean
- The bean to get the property value from.property
- The property.
public static PropertyDescriptor[] getProperties(Object bean)
bean
- The bean to extract the properties from.
public static Object getProperty(Object bean, String property)
bean
- The bean to get the property value from.property
- The property.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |