Package javaa.beans
Class IndexedPropertyDescriptor
java.lang.Object
javaa.beans.FeatureDescriptor
javaa.beans.PropertyDescriptor
javaa.beans.IndexedPropertyDescriptor
-
Constructor Summary
ConstructorsConstructorDescriptionIndexedPropertyDescriptor
(String propertyName, Class<?> beanClass) Constructs a new instance ofIndexedPropertyDescriptor
.IndexedPropertyDescriptor
(String propertyName, Class<?> beanClass, String getterName, String setterName, String indexedGetterName, String indexedSetterName) Constructs a new instance ofIndexedPropertyDescriptor
.IndexedPropertyDescriptor
(String propertyName, Method getter, Method setter, Method indexedGetter, Method indexedSetter) Constructs a new instance ofIndexedPropertyDescriptor
. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Determines if thisIndexedPropertyDescriptor
is equal to the specified object.Class
<?> Obtains the Class object of the indexed property type.Obtains the indexed getter.Obtains the indexed setter.int
hashCode()
HashCode of the IndexedPropertyDescriptorvoid
setIndexedReadMethod
(Method indexedGetter) Sets the indexed getter as the specified method.void
setIndexedWriteMethod
(Method indexedSetter) Sets the indexed setter as the specified method.Methods inherited from class javaa.beans.PropertyDescriptor
createPropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
Methods inherited from class javaa.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
-
Constructor Details
-
IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass, String getterName, String setterName, String indexedGetterName, String indexedSetterName) throws IntrospectionException Constructs a new instance ofIndexedPropertyDescriptor
.- Parameters:
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.- Throws:
IntrospectionException
-
IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Method getter, Method setter, Method indexedGetter, Method indexedSetter) throws IntrospectionException Constructs a new instance ofIndexedPropertyDescriptor
.- Parameters:
propertyName
- the specified indexed property's name.getter
- the array gettersetter
- the array setterindexedGetter
- the indexed getterindexedSetter
- the indexed setter- Throws:
IntrospectionException
-
IndexedPropertyDescriptor
public IndexedPropertyDescriptor(String propertyName, Class<?> beanClass) throws IntrospectionException Constructs a new instance ofIndexedPropertyDescriptor
.- Parameters:
propertyName
- the specified indexed property's name.beanClass
- the bean class.- Throws:
IntrospectionException
-
-
Method Details
-
setIndexedReadMethod
Sets the indexed getter as the specified method.- Parameters:
indexedGetter
- the specified indexed getter.- Throws:
IntrospectionException
-
setIndexedWriteMethod
Sets the indexed setter as the specified method.- Parameters:
indexedSetter
- the specified indexed setter.- Throws:
IntrospectionException
-
getIndexedWriteMethod
Obtains the indexed setter.- Returns:
- the indexed setter.
-
getIndexedReadMethod
Obtains the indexed getter.- Returns:
- the indexed getter.
-
equals
Determines if thisIndexedPropertyDescriptor
is equal to the specified object. TwoIndexedPropertyDescriptor
s are equal if the reader, indexed reader, writer, indexed writer, property types, indexed property type, property editor and flags are equal.- Overrides:
equals
in classPropertyDescriptor
- Parameters:
obj
-- Returns:
- true if this indexed property descriptor is equal to the specified object.
-
hashCode
public int hashCode()HashCode of the IndexedPropertyDescriptor- Overrides:
hashCode
in classPropertyDescriptor
-
getIndexedPropertyType
Obtains the Class object of the indexed property type.- Returns:
- the Class object of the indexed property type.
-