public class IndexedPropertyDescriptor extends PropertyDescriptor
An indexed property may also provide simple non-indexed read and write methods. If these are present, they read and write arrays of the type returned by the indexed read method.
Constructor | Description |
---|---|
IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass) |
This constructor constructs an IndexedPropertyDescriptor for a property
that follows the standard Java conventions by having getFoo and setFoo
accessor methods, for both indexed access and array access.
|
IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass,
String readMethodName,
String writeMethodName,
String indexedReadMethodName,
String indexedWriteMethodName) |
This constructor takes the name of a simple property, and method
names for reading and writing the property, both indexed
and non-indexed.
|
IndexedPropertyDescriptor(String propertyName,
Method readMethod,
Method writeMethod,
Method indexedReadMethod,
Method indexedWriteMethod) |
This constructor takes the name of a simple property, and Method
objects for reading and writing the property.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object obj) |
Compares this
PropertyDescriptor against the specified object. |
Class<?> |
getIndexedPropertyType() |
Returns the Java type info for the indexed property.
|
Method |
getIndexedReadMethod() |
Gets the method that should be used to read an indexed
property value.
|
Method |
getIndexedWriteMethod() |
Gets the method that should be used to write an indexed property value.
|
int |
hashCode() |
Returns a hash code value for the object.
|
void |
setIndexedReadMethod(Method readMethod) |
Sets the method that should be used to read an indexed property value.
|
void |
setIndexedWriteMethod(Method writeMethod) |
Sets the method that should be used to write an indexed property value.
|
createPropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue, toString