|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--elge.engine.BeanUtils
Bunch of methods that was needed and that work with stuff around bean like objects.
| Constructor Summary | |
BeanUtils()
|
|
| Method Summary | |
static Object |
duplicateBean(Object template)
Duplicates beans. |
static PropertyDescriptor |
findDescriptor(Class cls,
String propName)
Searches the bean for a property and returns descriptor for it if found. |
static PropertyEditor |
findPropertyEditor(PropertyDescriptor pd)
Searches for the editor for the PropertyDescriptor. |
static Object |
getPropertyValue(PropertyDescriptor pd,
Object bean)
gets a value from bean like object with a method that is described in the PropertyDescriptor. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BeanUtils()
| Method Detail |
public static Object getPropertyValue(PropertyDescriptor pd,
Object bean)
pd - the object's propertydescriptorbean - the bean like object
public static PropertyDescriptor findDescriptor(Class cls,
String propName)
cls - the bean like object classpropName - property name
public static PropertyEditor findPropertyEditor(PropertyDescriptor pd)
pd - Propertydesriptor to search the editor for.
public static Object duplicateBean(Object template)
template - bean like object to clone
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||