|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectorg.oddjob.arooa.beanutils.BeanUtilsPropertyAccessor
public class BeanUtilsPropertyAccessor
BeanUtilsBean with bespoke conversion and ArooaExceptions.
| Constructor Summary | |
|---|---|
BeanUtilsPropertyAccessor()
|
|
| Method Summary | ||
|---|---|---|
PropertyAccessor |
accessorWithConversions(ArooaConverter converter)
Provide an accessor that performs conversions. |
|
void |
clear()
|
|
BeanOverview |
getBeanOverview(Class<?> forClass)
Provide org.oddjob.arooo.BeanOverview. |
|
ArooaClass |
getClassName(Object bean)
Get the class name that can be used with getBeanOverview(). |
|
ArooaConverter |
getConverter()
|
|
Object |
getProperty(Object bean,
String property)
Get a property. |
|
|
getProperty(Object bean,
String property,
Class<T> required)
Get a property of a required type. |
|
void |
setIndexedProperty(Object bean,
String name,
int index,
Object value)
Set an indexed property on a bean. |
|
void |
setMappedProperty(Object bean,
String name,
String key,
Object value)
Set a mapped property on a bean. |
|
void |
setProperty(Object bean,
String name,
Object value)
Set a property on a bean. |
|
void |
setSimpleProperty(Object bean,
String name,
Object value)
Set a property on a bean. |
|
static void |
validateSimplePropertyName(String name)
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BeanUtilsPropertyAccessor()
| Method Detail |
|---|
public PropertyAccessor accessorWithConversions(ArooaConverter converter)
PropertyAccessor
accessorWithConversions in interface PropertyAccessorconverter - The converter.
public ArooaConverter getConverter()
public void setProperty(Object bean,
String name,
Object value)
throws ArooaPropertyException
setProperty in interface PropertyAccessorbean - The bean. Must not be null.name - The name. Must not be null.value - The value. Can be null.
ArooaPropertyException
public void setSimpleProperty(Object bean,
String name,
Object value)
throws ArooaPropertyException
setSimpleProperty in interface PropertyAccessorbean - The bean. Must not be null.name - The name. Must not be null.value - The value. Can be null.
ArooaPropertyException
public void setMappedProperty(Object bean,
String name,
String key,
Object value)
throws ArooaPropertyException
setMappedProperty in interface PropertyAccessorbean - 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.
PropertyAccessException
ArooaPropertyException
public void setIndexedProperty(Object bean,
String name,
int index,
Object value)
throws ArooaPropertyException
setIndexedProperty in interface PropertyAccessorbean - The bean. Must not be null.name - The name. Must not be null.index - The indexed property's index. 0 based.value - The value. Can be null.
ArooaPropertyException
public Object getProperty(Object bean,
String property)
throws ArooaPropertyException
getProperty in interface PropertyAccessorbean - The bean.The - property.
ArooaPropertyException
public <T> T getProperty(Object bean,
String property,
Class<T> required)
throws ArooaPropertyException,
ArooaConversionException
getProperty in interface PropertyAccessorbean - The bean.The - property.
ArooaPropertyException
ArooaConversionException
public static void validateSimplePropertyName(String name)
throws IllegalArgumentException
IllegalArgumentExceptionpublic ArooaClass getClassName(Object bean)
PropertyAccessor
getClassName in interface PropertyAccessor
public BeanOverview getBeanOverview(Class<?> forClass)
throws ArooaException
PropertyAccessororg.oddjob.arooo.BeanOverview.
getBeanOverview in interface PropertyAccessorArooaExceptionpublic void clear()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||