public class IndexedPropertyDescriptor extends PropertyDescriptor
Constructor and Description |
---|
IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass)
Constructs a new instance of
IndexedPropertyDescriptor . |
IndexedPropertyDescriptor(String propertyName,
Class<?> beanClass,
String getterName,
String setterName,
String indexedGetterName,
String indexedSetterName)
Constructs a new instance of
IndexedPropertyDescriptor . |
IndexedPropertyDescriptor(String propertyName,
Method getter,
Method setter,
Method indexedGetter,
Method indexedSetter)
Constructs a new instance of
IndexedPropertyDescriptor . |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Determines if this
IndexedPropertyDescriptor is equal to
the specified object. |
Class<?> |
getIndexedPropertyType()
Obtains the Class object of the indexed property type.
|
Method |
getIndexedReadMethod()
Obtains the indexed getter.
|
Method |
getIndexedWriteMethod()
Obtains the indexed setter.
|
int |
hashCode()
HashCode of the IndexedPropertyDescriptor
|
void |
setIndexedReadMethod(Method indexedGetter)
Sets the indexed getter as the specified method.
|
void |
setIndexedWriteMethod(Method indexedSetter)
Sets the indexed setter as the specified method.
|
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
public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass, String getterName, String setterName, String indexedGetterName, String indexedSetterName) throws IntrospectionException
IndexedPropertyDescriptor
.propertyName
- the specified indexed property's name.beanClass
- the bean classgetterName
- the name of the array gettersetterName
- the name of the array setterindexedGetterName
- the name of the indexed getter.indexedSetterName
- the name of the indexed setter.IntrospectionException
public IndexedPropertyDescriptor(String propertyName, Method getter, Method setter, Method indexedGetter, Method indexedSetter) throws IntrospectionException
IndexedPropertyDescriptor
.propertyName
- the specified indexed property's name.getter
- the array gettersetter
- the array setterindexedGetter
- the indexed getterindexedSetter
- the indexed setterIntrospectionException
public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException
IndexedPropertyDescriptor
.propertyName
- the specified indexed property's name.beanClass
- the bean class.IntrospectionException
public void setIndexedReadMethod(Method indexedGetter) throws IntrospectionException
indexedGetter
- the specified indexed getter.IntrospectionException
public void setIndexedWriteMethod(Method indexedSetter) throws IntrospectionException
indexedSetter
- the specified indexed setter.IntrospectionException
public Method getIndexedWriteMethod()
public Method getIndexedReadMethod()
public boolean equals(Object obj)
IndexedPropertyDescriptor
is equal to
the specified object. Two IndexedPropertyDescriptor
s are
equal if the reader, indexed reader, writer, indexed writer, property
types, indexed property type, property editor and flags are equal.equals
in class PropertyDescriptor
obj
- public int hashCode()
hashCode
in class PropertyDescriptor
public Class<?> getIndexedPropertyType()
Copyright © 2013. All Rights Reserved.