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 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)`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### getAllFields

          public static Field[] getAllFields(Class<?> klass)

    - #### getAllMethods

          public static Method[] getAllMethods(Class<?> klass)

    - #### 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

      Throws:
        `IllegalAccessException`
        `IllegalArgumentException`
        `InvocationTargetException`

    - #### prepareAccessorMainPartName

          public static String prepareAccessorMainPartName(String fieldName)

    - #### prepareGetterMethod

          public static Method prepareGetterMethod(Field f)

    - #### prepareSetterMethod

          public static Method prepareSetterMethod(Field f)

    - #### prepareSetterMethod

          public static Method prepareSetterMethod(Field f,
                                                   Class type)

    - #### 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

      Throws:
        `IllegalAccessException`
        `IllegalArgumentException`
        `InvocationTargetException`

    - #### setValue

          public static void setValue(Object toBean,
                                      String fieldName,
                                      Object valueToSet)
                               throws IllegalAccessException,
                                      IllegalArgumentException,
                                      InvocationTargetException,
                                      NoSuchMethodException

      Throws:
        `IllegalAccessException`
        `IllegalArgumentException`
        `InvocationTargetException`
        `NoSuchMethodException`

Copyright © 2004–2021 "Tigase, Inc.". All rights reserved.