Package javaa.beans

Class IndexedPropertyDescriptor


public class IndexedPropertyDescriptor extends PropertyDescriptor
  • Constructor Details

    • 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 Details

    • 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.