| Modifier and Type | Field and Description |
|---|---|
| private static final String | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public static Map | Returns: a possibly zero length but never null bean-like map. All properties of the bean are filled in, even if the value of the property is nullA ClassReflectionHelper to use for analyzing classes helper, Object a non-null bean to convert bean)Converts a Java bean to a bean-like Map |
| private static Method | |
| public static String | Returns: The java-bean version of the property name or null if the method is not a java-bean getterThe method to get the property name from method)Returns the bean version of the property name if the method is a getter, or returns null if the method is not a getter |
| public static PropertyChangeEvent[] | Returns: a possibly zero length but never null list of the change events between the two beansA ClassReflectionHelper to use for analyzing classes helper, Object a non-null current bean oldBean, Object a non-null new bean newBean)Gets the set of change events by comparing two different beans. |
| private static PropertyChangeEvent[] | |
| private static Object | |
| private static String | Returns: The property name or null if not a getterThe method to investigate for being a property method)Returns the property name if this is a getter |
| private static String |
| GET | back to summary |
|---|---|
| private static final String GET | |
| IS | back to summary |
|---|---|
| private static final String IS | |
| BeanReflectionHelper | back to summary |
|---|---|
| public BeanReflectionHelper() | |
| convertJavaBeanToBeanLikeMap | back to summary |
|---|---|
| public static Map Converts a Java bean to a bean-like Map
| |
| findMethod | back to summary |
|---|---|
| private static Method findMethod(Method m, Class<?> c) | |
| getBeanPropertyNameFromGetter | back to summary |
|---|---|
| public static String getBeanPropertyNameFromGetter(final Method method) Returns the bean version of the property name if the method is a getter, or returns null if the method is not a getter | |
| getChangeEvents | back to summary |
|---|---|
| public static PropertyChangeEvent[] getChangeEvents(ClassReflectionHelper helper, Object oldBean, Object newBean) Gets the set of change events by comparing two different beans. If the beans implement Map then they are considered to be bean-like maps
| |
| getMapChangeEvents | back to summary |
|---|---|
| private static PropertyChangeEvent[] getMapChangeEvents(Map<String, Object> oldBean, Map<String, Object> newBean) | |
| getValue | back to summary |
|---|---|
| private static Object getValue(Object bean, Method m) | |
| isAGetter | back to summary |
|---|---|
| private static String isAGetter(MethodWrapper method) Returns the property name if this is a getter
| |
| isAGetter | back to summary |
|---|---|
| private static String isAGetter(Method m) Returns the property name if this is a getter
| |