Package tigase.kernel
Class BeanUtils
- java.lang.Object
-
- tigase.kernel.BeanUtils
-
public class BeanUtils extends Object
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static Field[]getAllFields(Class<?> klass)static Method[]getAllMethods(Class<?> klass)static FieldgetField(BeanConfig bc, String fieldName)static TypegetGetterSetterMethodsParameterType(Field f)static ObjectgetValue(Object fromBean, Field field)static StringprepareAccessorMainPartName(String fieldName)static MethodprepareGetterMethod(Field f)static MethodprepareSetterMethod(Field f)static MethodprepareSetterMethod(Field f, Class type)static ArrayList<Method>prepareSetterMethods(Class<?> destination, String fieldName)static voidsetValue(Object toBean, Field field, Object valueToSet)static voidsetValue(Object toBean, String fieldName, Object valueToSet)
-
-
-
Method Detail
-
getField
public static Field getField(BeanConfig bc, String fieldName)
-
getGetterSetterMethodsParameterType
public static Type getGetterSetterMethodsParameterType(Field f)
-
getValue
public static Object getValue(Object fromBean, Field field) throws IllegalAccessException, IllegalArgumentException, InvocationTargetException
-
prepareSetterMethods
public static ArrayList<Method> prepareSetterMethods(Class<?> destination, String fieldName)
-
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
-
-