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.
| Modifier and Type | Field and Description |
|---|---|
| private Reference | |
| private String | |
| private final MethodRef | |
| private String | |
| private final MethodRef |
| Access | Constructor and Description |
|---|---|
| public | IndexedPropertyDescriptor(String
The programmatic name of the property. propertyName, Class<?> The Class object for the target bean. 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. |
| public | IndexedPropertyDescriptor(String
The programmatic name of the property. propertyName, Class<?> The Class object for the target bean. beanClass, String The name of the method used for reading the property
values as an array. May be null if the property is write-only
or must be indexed. readMethodName, String The name of the method used for writing the property
values as an array. May be null if the property is read-only
or must be indexed. writeMethodName, String The name of the method used for reading
an indexed property value.
May be null if the property is write-only. indexedReadMethodName, String The name of the method used for writing
an indexed property value.
May be null if the property is read-only. indexedWriteMethodName)This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed. |
| public | IndexedPropertyDescriptor(String
The programmatic name of the property. propertyName, Method The method used for reading the property values as an array.
May be null if the property is write-only or must be indexed. readMethod, Method The method used for writing the property values as an array.
May be null if the property is read-only or must be indexed. writeMethod, Method The method used for reading an indexed property value.
May be null if the property is write-only. indexedReadMethod, Method The method used for writing an indexed property value.
May be null if the property is read-only. indexedWriteMethod)This constructor takes the name of a simple property, and Method objects for reading and writing the property. |
| pack-priv | IndexedPropertyDescriptor(Map.
the key-value pair,
where the entry,key is the base name of the property (the rest of the method name)
and the value is the automatically generated property infothe flag indicating whether it is possible to treat this property as a bound property bound)Creates |
| pack-priv | IndexedPropertyDescriptor(PropertyDescriptor
The first (lower priority) PropertyDescriptor x, PropertyDescriptor The second (higher priority) PropertyDescriptor y)Package-private constructor. |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| pack-priv void | |
| public boolean | equals(Object obj)
Overrides java. Compares this |
| private Class | |
| public synchronized Class | Returns: theClass object that represents the Java type info,
or null if the type cannot be determinedReturns the Java type info for the indexed property. |
| private Class | |
| public synchronized Method | Returns: The method that should be used to read an indexed property value. May return null if the property isn't indexed or is write-only.Gets the method that should be used to read an indexed property value. |
| public synchronized Method | Returns: The method that should be used to write an indexed property value. May return null if the property isn't indexed or is read-only.Gets the method that should be used to write an indexed property value. |
| public int | Returns: a hash code value for this object.Overrides java. Returns a hash code value for the object. |
| private void | |
| public synchronized void | setIndexedReadMethod(Method
The new indexed read method. readMethod)Sets the method that should be used to read an indexed property value. |
| private void | |
| public synchronized void | setIndexedWriteMethod(Method
The new indexed write method. writeMethod)Sets the method that should be used to write an indexed property value. |
| private void | |
| pack-priv void |
| indexedPropertyTypeRef | back to summary |
|---|---|
| private Reference<? extends Class<?>> indexedPropertyTypeRef | |
| indexedReadMethodName | back to summary |
|---|---|
| private String indexedReadMethodName | |
| indexedReadMethodRef | back to summary |
|---|---|
| private final MethodRef indexedReadMethodRef | |
| indexedWriteMethodName | back to summary |
|---|---|
| private String indexedWriteMethodName | |
| indexedWriteMethodRef | back to summary |
|---|---|
| private final MethodRef indexedWriteMethodRef | |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException 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. Thus if the argument name is "fred", it will assume that there is an indexed reader method "getFred", a non-indexed (array) reader method also called "getFred", an indexed writer method "setFred", and finally a non-indexed writer method "setFred".
| |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass, String readMethodName, String writeMethodName, String indexedReadMethodName, String indexedWriteMethodName) throws IntrospectionException This constructor takes the name of a simple property, and method names for reading and writing the property, both indexed and non-indexed.
| |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| public IndexedPropertyDescriptor(String propertyName, Method readMethod, Method writeMethod, Method indexedReadMethod, Method indexedWriteMethod) throws IntrospectionException This constructor takes the name of a simple property, and Method objects for reading and writing the property.
| |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| pack-priv IndexedPropertyDescriptor(Map. Creates
| |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| pack-priv IndexedPropertyDescriptor(PropertyDescriptor x, PropertyDescriptor y) Package-private constructor. Merge two property descriptors. Where they conflict, give the second argument (y) priority over the first argument (x).
| |
| IndexedPropertyDescriptor | back to summary |
|---|---|
| pack-priv IndexedPropertyDescriptor(IndexedPropertyDescriptor old) | |
| appendTo | back to summary |
|---|---|
| pack-priv void appendTo(StringBuilder sb) Overrides java.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object obj) Overrides java. Compares this
| |
| findIndexedPropertyType | back to summary |
|---|---|
| private Class | |
| getIndexedPropertyType | back to summary |
|---|---|
| public synchronized Class Returns the Java type info for the indexed property.
Note that the
| |
| getIndexedPropertyType0 | back to summary |
|---|---|
| private Class | |
| getIndexedReadMethod | back to summary |
|---|---|
| public synchronized Method getIndexedReadMethod() Gets the method that should be used to read an indexed property value.
| |
| getIndexedWriteMethod | back to summary |
|---|---|
| public synchronized Method getIndexedWriteMethod() Gets the method that should be used to write an indexed property value.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns a hash code value for the object.
See
| |
| setIndexedPropertyType | back to summary |
|---|---|
| private void setIndexedPropertyType(Class<?> type) | |
| setIndexedReadMethod | back to summary |
|---|---|
| public synchronized void setIndexedReadMethod(Method readMethod) throws IntrospectionException Sets the method that should be used to read an indexed property value.
| |
| setIndexedReadMethod0 | back to summary |
|---|---|
| private void setIndexedReadMethod0(Method readMethod) | |
| setIndexedWriteMethod | back to summary |
|---|---|
| public synchronized void setIndexedWriteMethod(Method writeMethod) throws IntrospectionException Sets the method that should be used to write an indexed property value.
| |
| setIndexedWriteMethod0 | back to summary |
|---|---|
| private void setIndexedWriteMethod0(Method writeMethod) | |
| updateGenericsFor | back to summary |
|---|---|
| pack-priv void updateGenericsFor(Class<?> type) Overrides java.
| |