| Modifier and Type | Class and Description |
|---|---|
| private static interface | |
| private static class | |
| private static class | |
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private static final List | |
| private static final Map | methodCache
Cache for the methods of classes that we have been queried about so far. |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static <T> T | |
| public static <T> T | |
| public static PropertyDescriptor[] | |
| private static Method[] | Returns: array ofMethod belonging to the class of the objectthe object to examine object)Determines the class of a given object and returns an array of that class's methods. |
| public static Object | Returns: the stored valuethe object to examine object, String the property name for which the value should be read propertyName)For a given object, try to find the appropriate reader method and return the value, if set for the object. |
| public static Class | Returns: the class name of the return type if the reading method is found, null if it is not found.the object to examine object, String the property name whose reading method should be searched propertyName)Tried to determine the appropriate reader method for a given propertyName of a given object and, if found, returns the class of its return type. |
| private static Method | Returns: theMethod if found, null in all other cases.the object whose class will be examined object, String the property name for which the read method should be searched propertyName)Tries to find the Java method to read a given propertyName for the given object. |
| private static Method | Returns: theMethod if found, null in all other cases.the object whose class will be examined object, String the property name for which the write method is to be searched propertyName)Tries to find the Java method to write a new value for a given propertyName to the given object. |
| public static boolean | Returns: true if both reader and writer methods existthe object for which the class should be examined object, String the property name to search propertyName)Examines the given object's class and returns true if reader and writer methods both exist for the given property name. |
| public static boolean | Returns: true if a reader method existsthe object for which the class should be examined object, String the property name to search propertyName)Examines the given object's class and returns true if a reader method exists for the given property name. |
| public static boolean | Returns: true if a writer method existsthe object for which the class should be examined object, String the property name to search propertyName)Examines the given object's class and returns true if a writer method exists for the given property name. |
| private static void | |
| private static <T> T | |
| public static void | setProperty(Object
the object whose property should be set object, String name of the property to set propertyName, String new value of the property, as String propertyValue)Tries to guess the "real" data type of propertyValue by the given propertyName, then sets the selected property of the given object to that value. |
| public static void | setProperty(Object
the object whose property should be set object, String name of the property to set propertyName, Object new value of the property propertyValue)Sets the selected property of the given object to propertyValue. |
| introspectors | back to summary |
|---|---|
| private static final List<ObjectUtil. | |
| methodCache | back to summary |
|---|---|
| private static final Map<Class<?>, Method[]> methodCache Cache for the methods of classes that we have been queried about so far. | |
| ObjectUtil | back to summary |
|---|---|
| public ObjectUtil() | |
| convert | back to summary |
|---|---|
| public static <T> T convert(Object object, Class<T> targetClass) throws IllegalArgumentException Converts the given object to the targetClass | |
| defaultIfNull | back to summary |
|---|---|
| public static <T> T defaultIfNull(T value, T defaultValue) Return the defaultValue if the passed value is null. Otherwise, return the original value. | |
| getDescriptors | back to summary |
|---|---|
| public static PropertyDescriptor[] getDescriptors(Class<?> targetClass) throws IntrospectionException | |
| getMethods | back to summary |
|---|---|
| private static Method[] getMethods(Object object) Determines the class of a given object and returns an array of that class's methods. The information might come from a cache. | |
| getProperty | back to summary |
|---|---|
| public static Object getProperty(Object object, String propertyName) throws UnexpectedLiquibaseException For a given object, try to find the appropriate reader method and return the value, if set
for the object. If the property is currently not set for the object, an
| |
| getPropertyType | back to summary |
|---|---|
| public static Class Tried to determine the appropriate reader method for a given propertyName of a given object and, if found, returns the class of its return type. | |
| getReadMethod | back to summary |
|---|---|
| private static Method getReadMethod(Object object, String propertyName) Tries to find the Java method to read a given propertyName for the given object. | |
| getWriteMethod | back to summary |
|---|---|
| private static Method getWriteMethod(Object object, String propertyName) Tries to find the Java method to write a new value for a given propertyName to the given object. | |
| hasProperty | back to summary |
|---|---|
| public static boolean hasProperty(Object object, String propertyName) Examines the given object's class and returns true if reader and writer methods both exist for the given property name. | |
| hasReadProperty | back to summary |
|---|---|
| public static boolean hasReadProperty(Object object, String propertyName) Examines the given object's class and returns true if a reader method exists for the given property name. | |
| hasWriteProperty | back to summary |
|---|---|
| public static boolean hasWriteProperty(Object object, String propertyName) Examines the given object's class and returns true if a writer method exists for the given property name. | |
| raiseOverflowException | back to summary |
|---|---|
| private static void raiseOverflowException(Number number, Class<T> targetClass) | |
| raiseUnknownConversionException | back to summary |
|---|---|
| private static <T> T raiseUnknownConversionException(Object object, Class<T> targetClass) | |
| setProperty | back to summary |
|---|---|
| public static void setProperty(Object object, String propertyName, String propertyValue) Tries to guess the "real" data type of propertyValue by the given propertyName, then sets the selected property of the given object to that value. | |
| setProperty | back to summary |
|---|---|
| public static void setProperty(Object object, String propertyName, Object propertyValue) Sets the selected property of the given object to propertyValue. A run-time exception will occur if the type of value is incompatible with the reader/writer method signatures of the given propertyName. | |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| introspect | back to summary |
|---|---|
| public void introspect(ObjectUtil. | |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| DefaultBeanIntrospector | back to summary |
|---|---|
| private DefaultBeanIntrospector() | |
| introspect | back to summary |
|---|---|
| public void introspect(ObjectUtil. Implements liquibase.
| |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public void |
| FluentPropertyBeanIntrospector | back to summary |
|---|---|
| private FluentPropertyBeanIntrospector() | |
| introspect | back to summary |
|---|---|
| public void introspect(ObjectUtil. Implements liquibase.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Map | |
| private final Class |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public void | |
| public PropertyDescriptor | |
| public PropertyDescriptor[] | |
| public Class |
| descriptors | back to summary |
|---|---|
| private final Map<String, PropertyDescriptor> descriptors | |
| targetClass | back to summary |
|---|---|
| private final Class<?> targetClass | |
| IntrospectionContext | back to summary |
|---|---|
| public IntrospectionContext(Class<?> targetClass) | |
| addDescriptor | back to summary |
|---|---|
| public void addDescriptor(PropertyDescriptor descriptor) | |
| addDescriptors | back to summary |
|---|---|
| public void addDescriptors(PropertyDescriptor[] descriptors) | |
| getDescriptor | back to summary |
|---|---|
| public PropertyDescriptor getDescriptor(String name) | |
| getDescriptors | back to summary |
|---|---|
| public PropertyDescriptor[] getDescriptors() | |
| getTargetClass | back to summary |
|---|---|
| public Class | |