public class PropertyDescriptorUtil
extends java.lang.Object
| 构造器和说明 |
|---|
PropertyDescriptorUtil() |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
copyNonMethodProperties(java.beans.PropertyDescriptor source,
java.beans.PropertyDescriptor target)
拷贝属性描述
|
static boolean |
equals(java.beans.PropertyDescriptor pd,
java.beans.PropertyDescriptor otherPd) |
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)
source - 源属性描述target - 目标属性描述public static java.lang.Class<?> findPropertyType(java.lang.reflect.Method readMethod,
java.lang.reflect.Method writeMethod)
throws java.beans.IntrospectionException
readMethod - 读方法writeMethod - 写方法java.beans.IntrospectionExceptionpublic 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
name - 属性名称propertyType - 属性类型indexedReadMethod - 索引读方法indexedWriteMethod - 索引写方法java.beans.IntrospectionExceptionpublic static boolean equals(java.beans.PropertyDescriptor pd,
java.beans.PropertyDescriptor otherPd)