public class BeanUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Method[] |
getAllMethods(Class<?> klass) |
static Object |
getValue(Object fromBean,
Field field) |
static String |
prepareAccessorMainPartName(String fieldName) |
static Method |
prepareGetterMethod(Field f) |
static Method |
prepareSetterMethod(Field f) |
static ArrayList<Method> |
prepareSetterMethods(Class<?> destination,
String fieldName) |
static void |
setValue(Object toBean,
Field field,
Object valueToSet) |
static void |
setValue(Object toBean,
String fieldName,
Object valueToSet) |
public static Object getValue(Object fromBean, Field field) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public static ArrayList<Method> prepareSetterMethods(Class<?> destination, String fieldName)
public static void setValue(Object toBean, Field field, Object valueToSet) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
public static void setValue(Object toBean, String fieldName, Object valueToSet) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
Copyright © 2018 "Tigase, Inc.". All rights reserved.