java.lang.Object
|
+----java.beans.FeatureDescriptor
|
+----java.beans.PropertyDescriptor
|
+----java.beans.IndexedPropertyDescriptor
IndexedPropertyDescriptor 描述一个数组形式的特性并有一个索引读和/或写方法来存取数组中特定元素。
索引特性也可提供简单的非索引读写方法。若存在, 则它们能读写带索引的读方法返回的类型数组。
public IndexedPropertyDescriptor(String propertyName,
Class beanClass) throws IntrospectionException
因此若参数名是“fred”,则假设有一个索引阅读器“getFred”,一个命名也为“getFred”的非索引 (数组) 读程序方法,一个索引写程序方法“setFred”, 一个非索引写程序方法“setFred”。
public IndexedPropertyDescriptor(String propertyName,
Class beanClass,
String getterName,
String setterName,
String indexedGetterName,
String indexedSetterName) throws IntrospectionException
public IndexedPropertyDescriptor(String propertyName,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter) throws IntrospectionException
public Method getIndexedReadMethod()
public Method getIndexedWriteMethod()
public Class getIndexedPropertyType()
这是 indexedReadMethod 将返回的类型。