Package jadex.commons.beans
Class IndexedPropertyDescriptor
- java.lang.Object
- 
- jadex.commons.beans.FeatureDescriptor
- 
- jadex.commons.beans.PropertyDescriptor
- 
- jadex.commons.beans.IndexedPropertyDescriptor
 
 
 
- 
 public class IndexedPropertyDescriptor extends PropertyDescriptor 
- 
- 
Constructor SummaryConstructors Constructor Description IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass)Constructs a new instance ofIndexedPropertyDescriptor.IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass, java.lang.String getterName, java.lang.String setterName, java.lang.String indexedGetterName, java.lang.String indexedSetterName)Constructs a new instance ofIndexedPropertyDescriptor.IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.reflect.Method indexedGetter, java.lang.reflect.Method indexedSetter)Constructs a new instance ofIndexedPropertyDescriptor.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)Determines if thisIndexedPropertyDescriptoris equal to the specified object.java.lang.Class<?>getIndexedPropertyType()Obtains the Class object of the indexed property type.java.lang.reflect.MethodgetIndexedReadMethod()Obtains the indexed getter.java.lang.reflect.MethodgetIndexedWriteMethod()Obtains the indexed setter.inthashCode()HashCode of the IndexedPropertyDescriptorvoidsetIndexedReadMethod(java.lang.reflect.Method indexedGetter)Sets the indexed getter as the specified method.voidsetIndexedWriteMethod(java.lang.reflect.Method indexedSetter)Sets the indexed setter as the specified method.- 
Methods inherited from class jadex.commons.beans.PropertyDescriptorcreatePropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
 - 
Methods inherited from class jadex.commons.beans.FeatureDescriptorattributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
- 
 
- 
- 
- 
Constructor Detail- 
IndexedPropertyDescriptorpublic IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass, java.lang.String getterName, java.lang.String setterName, java.lang.String indexedGetterName, java.lang.String indexedSetterName) throws IntrospectionExceptionConstructs a new instance ofIndexedPropertyDescriptor.- Parameters:
- propertyName- the specified indexed property's name.
- beanClass- the bean class
- getterName- the name of the array getter
- setterName- the name of the array setter
- indexedGetterName- the name of the indexed getter.
- indexedSetterName- the name of the indexed setter.
- Throws:
- IntrospectionException
 
 - 
IndexedPropertyDescriptorpublic IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.reflect.Method getter, java.lang.reflect.Method setter, java.lang.reflect.Method indexedGetter, java.lang.reflect.Method indexedSetter) throws IntrospectionExceptionConstructs a new instance ofIndexedPropertyDescriptor.- Parameters:
- propertyName- the specified indexed property's name.
- getter- the array getter
- setter- the array setter
- indexedGetter- the indexed getter
- indexedSetter- the indexed setter
- Throws:
- IntrospectionException
 
 - 
IndexedPropertyDescriptorpublic IndexedPropertyDescriptor(java.lang.String propertyName, java.lang.Class<?> beanClass) throws IntrospectionExceptionConstructs a new instance ofIndexedPropertyDescriptor.- Parameters:
- propertyName- the specified indexed property's name.
- beanClass- the bean class.
- Throws:
- IntrospectionException
 
 
- 
 - 
Method Detail- 
setIndexedReadMethodpublic void setIndexedReadMethod(java.lang.reflect.Method indexedGetter) throws IntrospectionExceptionSets the indexed getter as the specified method.- Parameters:
- indexedGetter- the specified indexed getter.
- Throws:
- IntrospectionException
 
 - 
setIndexedWriteMethodpublic void setIndexedWriteMethod(java.lang.reflect.Method indexedSetter) throws IntrospectionExceptionSets the indexed setter as the specified method.- Parameters:
- indexedSetter- the specified indexed setter.
- Throws:
- IntrospectionException
 
 - 
getIndexedWriteMethodpublic java.lang.reflect.Method getIndexedWriteMethod() Obtains the indexed setter.- Returns:
- the indexed setter.
 
 - 
getIndexedReadMethodpublic java.lang.reflect.Method getIndexedReadMethod() Obtains the indexed getter.- Returns:
- the indexed getter.
 
 - 
equalspublic boolean equals(java.lang.Object obj) Determines if thisIndexedPropertyDescriptoris equal to the specified object. TwoIndexedPropertyDescriptors are equal if the reader, indexed reader, writer, indexed writer, property types, indexed property type, property editor and flags are equal.- Overrides:
- equalsin class- PropertyDescriptor
- Parameters:
- obj-
- Returns:
- true if this indexed property descriptor is equal to the specified object.
 
 - 
hashCodepublic int hashCode() HashCode of the IndexedPropertyDescriptor- Overrides:
- hashCodein class- PropertyDescriptor
 
 - 
getIndexedPropertyTypepublic java.lang.Class<?> getIndexedPropertyType() Obtains the Class object of the indexed property type.- Returns:
- the Class object of the indexed property type.
 
 
- 
 
-