public class MBeanUtilsBean
extends org.apache.commons.beanutils.BeanUtilsBean
BeanUtilsBean
and overrides methods to use MRules bean utilities framework.Constructor and Description |
---|
MBeanUtilsBean() |
MBeanUtilsBean(boolean useCommonBeanUtilsSyntax) |
MBeanUtilsBean(MConvertUtilsBean convertUtilsBean) |
MBeanUtilsBean(MConvertUtilsBean convertUtilsBean,
boolean useCommonBeanUtilsSyntax) |
MBeanUtilsBean(MConvertUtilsBean convertUtilsBean,
MPropertyUtilsBean propertyUtilsBean) |
Modifier and Type | Method and Description |
---|---|
Object |
cloneBean(Object bean) |
protected Object |
convert(Object value,
Class<?> type) |
void |
copyProperties(Object dest,
Object orig) |
void |
copyProperty(Object bean,
String name,
Object value) |
Map<String,String> |
describe(Object bean) |
String[] |
getArrayProperty(Object bean,
String name) |
String |
getIndexedProperty(Object bean,
String name) |
String |
getIndexedProperty(Object bean,
String name,
int index) |
String |
getMappedProperty(Object bean,
String name) |
String |
getMappedProperty(Object bean,
String name,
String key) |
String |
getNestedProperty(Object bean,
String name) |
String |
getProperty(Object bean,
String name) |
String |
getSimpleProperty(Object bean,
String name) |
void |
populate(Object bean,
Map<String,? extends Object> properties)
Defers to super implementation, as it's a Struts specific implementation.
|
void |
setProperty(Object bean,
String name,
Object value)
Defers to super implementation, as it's a Struts specific implementation.
|
public MBeanUtilsBean()
public MBeanUtilsBean(boolean useCommonBeanUtilsSyntax)
public MBeanUtilsBean(MConvertUtilsBean convertUtilsBean)
public MBeanUtilsBean(MConvertUtilsBean convertUtilsBean, boolean useCommonBeanUtilsSyntax)
public MBeanUtilsBean(MConvertUtilsBean convertUtilsBean, MPropertyUtilsBean propertyUtilsBean)
protected Object convert(Object value, Class<?> type)
convert
in class org.apache.commons.beanutils.BeanUtilsBean
public Object cloneBean(Object bean) throws IllegalAccessException, InstantiationException, InvocationTargetException, NoSuchMethodException
cloneBean
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InstantiationException
InvocationTargetException
NoSuchMethodException
public void copyProperties(Object dest, Object orig) throws IllegalAccessException, InvocationTargetException
copyProperties
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
public void copyProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException
copyProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
public Map<String,String> describe(Object bean) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
describe
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String[] getArrayProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getArrayProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getIndexedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getIndexedProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getIndexedProperty(Object bean, String name, int index) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getIndexedProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getMappedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getMappedProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getMappedProperty(Object bean, String name, String key) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getMappedProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getNestedProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getNestedProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public String getSimpleProperty(Object bean, String name) throws IllegalAccessException, InvocationTargetException, NoSuchMethodException
getSimpleProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
NoSuchMethodException
public void populate(Object bean, Map<String,? extends Object> properties) throws IllegalAccessException, InvocationTargetException
populate
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException
public void setProperty(Object bean, String name, Object value) throws IllegalAccessException, InvocationTargetException
setProperty
in class org.apache.commons.beanutils.BeanUtilsBean
IllegalAccessException
InvocationTargetException