Package tigase.kernel
Class BeanUtils
java.lang.Object
tigase.kernel.BeanUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic Field[]
getAllFields
(Class<?> klass) static Method[]
getAllMethods
(Class<?> klass) static Field
getField
(BeanConfig bc, String fieldName) static Type
static Object
static String
prepareAccessorMainPartName
(String fieldName) static Method
static Method
static Method
prepareSetterMethod
(Field f, Class type) prepareSetterMethods
(Class<?> destination, String fieldName) static void
static void
-
Method Details
-
getAllFields
-
getAllMethods
-
getField
-
getGetterSetterMethodsParameterType
-
getValue
public static Object getValue(Object fromBean, Field field) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException -
prepareAccessorMainPartName
-
prepareGetterMethod
-
prepareSetterMethod
-
prepareSetterMethod
-
prepareSetterMethods
-
setValue
public static void setValue(Object toBean, Field field, Object valueToSet) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException -
setValue
public static void setValue(Object toBean, String fieldName, Object valueToSet) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException, NoSuchMethodException
-