|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.oddjob.arooa.reflect.BeanUtilsBeanHelper
BeanUtilsBean with bespoke conversion and ArooaExceptions.
| Constructor Summary | |
BeanUtilsBeanHelper(org.apache.commons.beanutils.BeanUtilsBean bub)
Constructor which takes a BeanUtilsBean to wrap. |
|
BeanUtilsBeanHelper(org.apache.commons.beanutils.BeanUtilsBean bub,
java.lang.String tag,
Location location)
Constructor which takes a BeanUtilsBean and tag and location for exceptions. |
|
| Method Summary | |
java.lang.Object |
convert(java.lang.Class required,
java.lang.Object from)
Resolve a given object into an oject of the required class. |
java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String property)
Get a property. |
java.lang.Object |
getProperty(java.lang.Object bean,
java.lang.String property,
java.lang.Class required)
Get a property of a required type. |
java.lang.Class |
getPropertyType(java.lang.Object bean,
java.lang.String name)
Get the property type. |
void |
setMappedProperty(java.lang.Object bean,
java.lang.String name,
java.lang.String key,
java.lang.Object value)
Set a mapped property on a bean. |
void |
setProperty(java.lang.Object bean,
java.lang.String name,
java.lang.Object value)
Set a property on a bean. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BeanUtilsBeanHelper(org.apache.commons.beanutils.BeanUtilsBean bub,
java.lang.String tag,
Location location)
bub - The BeanUtilsBean.tag - The tag.location - The location.public BeanUtilsBeanHelper(org.apache.commons.beanutils.BeanUtilsBean bub)
bub - | Method Detail |
public void setProperty(java.lang.Object bean,
java.lang.String name,
java.lang.Object value)
bean - The bean. Must not be null.name - The name. Must not be null.value - The value. Can be null.
public void setMappedProperty(java.lang.Object bean,
java.lang.String name,
java.lang.String key,
java.lang.Object value)
bean - The bean. Must not be null.name - The name. Must not be null.key - The mapped property's key. Must not be null.value - The value. Can be null.
public java.lang.Class getPropertyType(java.lang.Object bean,
java.lang.String name)
bean - name -
public java.lang.Object getProperty(java.lang.Object bean,
java.lang.String property)
bean - The bean.
public java.lang.Object getProperty(java.lang.Object bean,
java.lang.String property,
java.lang.Class required)
bean - The bean.
public java.lang.Object convert(java.lang.Class required,
java.lang.Object from)
throws java.lang.ClassCastException
from - The object to resolve from.required - The required class;
java.lang.ClassCastException - if no resolution is possible.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||