|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectch.elca.el4j.util.codingsupport.BeanPropertyUtils
public final class BeanPropertyUtils
Utility class to get/set properties generically.
| Method Summary | |
|---|---|
static Object |
getProperty(Object entity,
String propertyName)
Generically get a property. |
static Object |
getPropertySimplified(Object entity,
String propertyName)
Generically get a property, casting arrays to collections. |
static Method |
getReadMethod(Class<?> entityClass,
String propertyName)
Get the read method of a property. |
static Method |
getWriteMethod(Class<?> entityClass,
String propertyName)
Get the write method of a property. |
static void |
setProperty(Object entity,
String propertyName,
Object value)
Generically set a property. |
static void |
setPropertySimplified(Object entity,
String propertyName,
Object value)
Generically set a property. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public static Object getProperty(Object entity,
String propertyName)
entity - The entity to get a property on.propertyName - The property name to get.
public static Object getPropertySimplified(Object entity,
String propertyName)
entity - The entity to get a property on.propertyName - The property name to get.
public static void setProperty(Object entity,
String propertyName,
Object value)
entity - The entity to set the property on.propertyName - The property name.value - The value to set.
public static void setPropertySimplified(Object entity,
String propertyName,
Object value)
entity - The entity to set the property on.propertyName - The property name.value - The value to set.
public static Method getReadMethod(Class<?> entityClass,
String propertyName)
entityClass - the class of the entitypropertyName - the property name
public static Method getWriteMethod(Class<?> entityClass,
String propertyName)
entityClass - the class of the entitypropertyName - the property name
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||