Class IndexedPropertyDescriptor

    • 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 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​(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 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​(java.lang.String propertyName,
                                         java.lang.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​(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 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.
      • getIndexedPropertyType

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