public class BeanUtils extends Object
Constructor and Description |
---|
BeanUtils() |
Modifier and Type | Method and Description |
---|---|
static void |
copyProperties(Object bean,
Map<String,String> properties) |
static Object |
getProperty(Object bean,
String propertyName) |
static PropertyDescriptor |
getPropertyDescriptor(Object bean,
String propertyName) |
static PropertyDescriptor[] |
getPropertyDescriptors(Object bean) |
static void |
setProperty(Object bean,
String propertyName,
Object propertyValue) |
public static void setProperty(Object bean, String propertyName, Object propertyValue) throws IllegalAccessException, InvocationTargetException, IntrospectionException, NoSuchMethodException
public static Object getProperty(Object bean, String propertyName) throws IntrospectionException, IllegalAccessException, InvocationTargetException, NoSuchMethodException
public static void copyProperties(Object bean, Map<String,String> properties) throws IllegalAccessException, InvocationTargetException, IntrospectionException
public static PropertyDescriptor getPropertyDescriptor(Object bean, String propertyName) throws IntrospectionException, NoSuchMethodException
public static PropertyDescriptor[] getPropertyDescriptors(Object bean) throws IntrospectionException
IntrospectionException
Copyright © 2006–2016 The Apache Software Foundation. All rights reserved.