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 Summary
Constructors 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 Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(java.lang.Object obj)
Determines if thisIndexedPropertyDescriptor
is equal to the specified object.java.lang.Class<?>
getIndexedPropertyType()
Obtains the Class object of the indexed property type.java.lang.reflect.Method
getIndexedReadMethod()
Obtains the indexed getter.java.lang.reflect.Method
getIndexedWriteMethod()
Obtains the indexed setter.int
hashCode()
HashCode of the IndexedPropertyDescriptorvoid
setIndexedReadMethod(java.lang.reflect.Method indexedGetter)
Sets the indexed getter as the specified method.void
setIndexedWriteMethod(java.lang.reflect.Method indexedSetter)
Sets the indexed setter as the specified method.-
Methods inherited from class jadex.commons.beans.PropertyDescriptor
createPropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
-
Methods inherited from class jadex.commons.beans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
-
-
-
-
Constructor Detail
-
IndexedPropertyDescriptor
public 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 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(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 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(java.lang.String propertyName, java.lang.Class<?> beanClass) throws IntrospectionException
Constructs a new instance ofIndexedPropertyDescriptor
.- Parameters:
propertyName
- the specified indexed property's name.beanClass
- the bean class.- Throws:
IntrospectionException
-
-
Method Detail
-
setIndexedReadMethod
public void setIndexedReadMethod(java.lang.reflect.Method indexedGetter) throws IntrospectionException
Sets the indexed getter as the specified method.- Parameters:
indexedGetter
- the specified indexed getter.- Throws:
IntrospectionException
-
setIndexedWriteMethod
public void setIndexedWriteMethod(java.lang.reflect.Method indexedSetter) throws IntrospectionException
Sets the indexed setter as the specified method.- Parameters:
indexedSetter
- the specified indexed setter.- Throws:
IntrospectionException
-
getIndexedWriteMethod
public java.lang.reflect.Method getIndexedWriteMethod()
Obtains the indexed setter.- Returns:
- the indexed setter.
-
getIndexedReadMethod
public java.lang.reflect.Method getIndexedReadMethod()
Obtains the indexed getter.- Returns:
- the indexed getter.
-
equals
public boolean equals(java.lang.Object obj)
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
public java.lang.Class<?> getIndexedPropertyType()
Obtains the Class object of the indexed property type.- Returns:
- the Class object of the indexed property type.
-
-