public class BeanUtils extends Object
Modifier and Type | Method and Description |
---|---|
static Field[] |
getAllFields(Class<?> klass) |
static Method[] |
getAllMethods(Class<?> klass) |
static Field |
getField(BeanConfig bc,
String fieldName) |
static Type |
getGetterSetterMethodsParameterType(Field f) |
static Object |
getValue(Object fromBean,
Field field) |
static String |
prepareAccessorMainPartName(String fieldName) |
static Method |
prepareGetterMethod(Field f) |
static Method |
prepareSetterMethod(Field f) |
static Method |
prepareSetterMethod(Field f,
Class type) |
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 Field getField(BeanConfig bc, String fieldName)
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 © 2004–2021 "Tigase, Inc.". All rights reserved.