com.googlecode.openbeans
Class IndexedPropertyDescriptor

java.lang.Object
  extended by com.googlecode.openbeans.FeatureDescriptor
      extended by com.googlecode.openbeans.PropertyDescriptor
          extended by com.googlecode.openbeans.IndexedPropertyDescriptor

public class IndexedPropertyDescriptor
extends PropertyDescriptor


Constructor Summary
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.
 
Method Summary
 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.
 
Methods inherited from class com.googlecode.openbeans.PropertyDescriptor
createPropertyEditor, getPropertyEditorClass, getPropertyType, getReadMethod, getWriteMethod, isBound, isConstrained, setBound, setConstrained, setPropertyEditorClass, setReadMethod, setWriteMethod
 
Methods inherited from class com.googlecode.openbeans.FeatureDescriptor
attributeNames, getDisplayName, getName, getShortDescription, getValue, isExpert, isHidden, isPreferred, setDisplayName, setExpert, setHidden, setName, setPreferred, setShortDescription, setValue
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String propertyName,
                                 Class<?> beanClass,
                                 String getterName,
                                 String setterName,
                                 String indexedGetterName,
                                 String indexedSetterName)
                          throws IntrospectionException
Constructs a new instance of IndexedPropertyDescriptor.

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

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String propertyName,
                                 Method getter,
                                 Method setter,
                                 Method indexedGetter,
                                 Method indexedSetter)
                          throws IntrospectionException
Constructs a new instance of IndexedPropertyDescriptor.

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

IndexedPropertyDescriptor

public IndexedPropertyDescriptor(String propertyName,
                                 Class<?> beanClass)
                          throws IntrospectionException
Constructs a new instance of IndexedPropertyDescriptor.

Parameters:
propertyName - the specified indexed property's name.
beanClass - the bean class.
Throws:
IntrospectionException
Method Detail

setIndexedReadMethod

public void setIndexedReadMethod(Method indexedGetter)
                          throws IntrospectionException
Sets the indexed getter as the specified method.

Parameters:
indexedGetter - the specified indexed getter.
Throws:
IntrospectionException

setIndexedWriteMethod

public void setIndexedWriteMethod(Method indexedSetter)
                           throws IntrospectionException
Sets the indexed setter as the specified method.

Parameters:
indexedSetter - the specified indexed setter.
Throws:
IntrospectionException

getIndexedWriteMethod

public Method getIndexedWriteMethod()
Obtains the indexed setter.

Returns:
the indexed setter.

getIndexedReadMethod

public Method getIndexedReadMethod()
Obtains the indexed getter.

Returns:
the indexed getter.

equals

public boolean equals(Object obj)
Determines if this 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.

Overrides:
equals in class PropertyDescriptor
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 class PropertyDescriptor

getIndexedPropertyType

public Class<?> getIndexedPropertyType()
Obtains the Class object of the indexed property type.

Returns:
the Class object of the indexed property type.


Copyright © 2013. All Rights Reserved.