Interface PropertyValueProvider

    • Method Summary

      All Methods Static Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.Object __propertyValueProvider__get​(java.lang.String fieldName)
      Returns the value of a given field.
      void __propertyValueProvider__set​(java.lang.String fieldName, java.lang.Object value)
      Sets the value of a given field.
      static java.lang.Object get​(java.lang.Object object, java.lang.String fieldName)
      Returns the value of a given field in a given object if it belongs to a class that implements PropertyValueProvider.
      static void set​(java.lang.Object object, java.lang.String fieldName, java.lang.Object value)
      Sets the value of a given field in a given object if it belongs to a class that implements PropertyValueProvider.
    • Method Detail

      • __propertyValueProvider__get

        java.lang.Object __propertyValueProvider__get​(java.lang.String fieldName)
        Returns the value of a given field.
        Parameters:
        fieldName - the field name.
        Returns:
        the field value.
      • __propertyValueProvider__set

        void __propertyValueProvider__set​(java.lang.String fieldName,
                                          java.lang.Object value)
        Sets the value of a given field.
        Parameters:
        fieldName - the field name.
        value - the field value.
        Since:
        5.8.7
      • get

        static java.lang.Object get​(java.lang.Object object,
                                    java.lang.String fieldName)

        Returns the value of a given field in a given object if it belongs to a class that implements PropertyValueProvider. Otherwise, it throws an exception.

        This is an utility method to avoid having to make casts very time you need to call __propertyValueProvider__get(String).

        Parameters:
        object - an object.
        fieldName - the field name.
        Returns:
        the field value.
      • set

        static void set​(java.lang.Object object,
                        java.lang.String fieldName,
                        java.lang.Object value)

        Sets the value of a given field in a given object if it belongs to a class that implements PropertyValueProvider. Otherwise, it throws an exception.

        This is an utility method to avoid having to make casts very time you need to call __propertyValueProvider__set(String, Object).

        Parameters:
        object - an object.
        fieldName - the field name.
        value - the field value.
        Since:
        5.8.7