class PropertyDescriptorUtils
extends java.lang.Object
Constructor and Description |
---|
PropertyDescriptorUtils() |
Modifier and Type | Method and Description |
---|---|
static boolean |
compareMethods(java.lang.reflect.Method a,
java.lang.reflect.Method b) |
static void |
copyNonMethodProperties(java.beans.PropertyDescriptor source,
java.beans.PropertyDescriptor target) |
static boolean |
equals(java.beans.PropertyDescriptor pd1,
java.lang.Object obj)
Compare the given <code>PropertyDescriptor</code> against the given <code>Object</code> and
return
true if they are objects are equivalent, i.e. |
static java.lang.Class<?> |
findIndexedPropertyType(java.lang.String name,
java.lang.Class<?> propertyType,
java.lang.reflect.Method indexedReadMethod,
java.lang.reflect.Method indexedWriteMethod) |
static java.lang.Class<?> |
findPropertyType(java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod) |
public static void copyNonMethodProperties(java.beans.PropertyDescriptor source, java.beans.PropertyDescriptor target) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.lang.Class<?> findPropertyType(java.lang.reflect.Method readMethod, java.lang.reflect.Method writeMethod) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static java.lang.Class<?> findIndexedPropertyType(java.lang.String name, java.lang.Class<?> propertyType, java.lang.reflect.Method indexedReadMethod, java.lang.reflect.Method indexedWriteMethod) throws java.beans.IntrospectionException
java.beans.IntrospectionException
public static boolean equals(java.beans.PropertyDescriptor pd1, java.lang.Object obj)
true
if they are objects are equivalent, i.e. both are PropertyDescriptor
s whose read method, write method, property types, property
editor and flags are equivalent.PropertyDescriptor.equals(Object)
public static boolean compareMethods(java.lang.reflect.Method a, java.lang.reflect.Method b)