Interface PropertyAccessor

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      int getConstructorArgumentIndex()
      Returns the constructor argument index, or -1 if this property is not a constructor argument.
      java.lang.Object getValue​(java.lang.Object bean)
      Returns the property value from a bean object.
      boolean isConstructorArgument()
      Returns whether this property is a constructor argument.
      void setValue​(java.lang.Object bean, java.lang.Object value)
      Sets the property value on a bean object.
    • Method Detail

      • getValue

        java.lang.Object getValue​(java.lang.Object bean)
        Returns the property value from a bean object.
        Parameters:
        bean - the bean object to get the property from
        Returns:
        the property value
      • setValue

        void setValue​(java.lang.Object bean,
                      java.lang.Object value)
        Sets the property value on a bean object.
        Parameters:
        bean - the bean object to set the property
        value - the property value
      • isConstructorArgument

        boolean isConstructorArgument()
        Returns whether this property is a constructor argument.
        Returns:
        true if this property is a constructor argument, false otherwise
      • getConstructorArgumentIndex

        int getConstructorArgumentIndex()
        Returns the constructor argument index, or -1 if this property is not a constructor argument.
        Returns:
        the constructor argument index