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 FieldgetField(BeanConfig bc, String fieldName) static Typestatic Objectstatic StringprepareAccessorMainPartName(String fieldName) static Methodstatic Methodstatic MethodprepareSetterMethod(Field f, Class type) prepareSetterMethods(Class<?> destination, String fieldName) static voidstatic 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
-