Interface GetAndSet


  • public interface GetAndSet
    The interface GetAndSet provides methods to get and set values of an object in a model. This inteface was previously in the PropertyResolver class.
    • Method Detail

      • getField

        java.lang.reflect.Field getField()
        Returns:
        Field or null if there is no field
      • getGetter

        java.lang.reflect.Method getGetter()
        Returns:
        Getter method or null if there is no getter
      • getSetter

        java.lang.reflect.Method getSetter()
        Returns:
        Setter of null if there is no setter
      • getTargetClass

        java.lang.Class<?> getTargetClass()
        Returns:
        The target class of the object that as to be set.
      • getValue

        java.lang.Object getValue​(java.lang.Object object)
        Parameters:
        object - The object where the value must be taken from.
        Returns:
        The value of this property
      • newValue

        java.lang.Object newValue​(java.lang.Object object)
        Parameters:
        object - The object where the new value must be set on.
        Returns:
        The new value for the property that is set back on that object.
      • setValue

        void setValue​(java.lang.Object object,
                      java.lang.Object value)
        Sets the value.
        Parameters:
        object - the object
        value - the value