Class BinderAction


  • public class BinderAction
    extends java.lang.Object
    This class is used as information for result of what the binder action performed with a IBinderPOJO object item with a Property.
    Author:
    Christopher Mindus
    • Nested Class Summary

      Nested Classes 
      Modifier and TypeClassDescription
      static class BinderAction.ActionPerformed
      The various actions that can be performed.
    • Field Summary

      Fields 
      Modifier and TypeFieldDescription
      BinderAction.ActionPerformedaction
      The action performed with the field or the property.
      java.lang.Throwableerror
      In case of an error (action ERROR or CONVERSION_ERROR), this variable contains the exception that was encountered during conversion.
      java.lang.reflect.Fieldfield
      The field in the POJO that was manipulated.
      GProp<?>property
      The property used for the action.
    • Constructor Summary

      Constructors 
      ConstructorDescription
      BinderAction​(GProp<?> property)
      Constructor of the binder object.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and TypeMethodDescription
      booleanwasSuccessful()
      Checks if this action was successful, meaning one of the ActionPerformed as NO_CHANGE, CONTAINER_CHANGED, ASSIGNED, i.e.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • property

        public final GProp<?> property
        The property used for the action.
      • field

        public java.lang.reflect.Field field
        The field in the POJO that was manipulated. If the field is not found, i.e. when the action is FIELD_NOT_FOUND, this variable is null.
      • error

        public java.lang.Throwable error
        In case of an error (action ERROR or CONVERSION_ERROR), this variable contains the exception that was encountered during conversion.
    • Constructor Detail

      • BinderAction

        public BinderAction​(GProp<?> property)
        Constructor of the binder object.
        Parameters:
        property - the property that is bound.
    • Method Detail

      • wasSuccessful

        public boolean wasSuccessful()
        Checks if this action was successful, meaning one of the ActionPerformed as NO_CHANGE, CONTAINER_CHANGED, ASSIGNED, i.e. not ERROR, FIELD_NOT_FOUND or CONVERSION_ERROR.