Class ActionFormResult


  • public class ActionFormResult
    extends java.lang.Object
    Class used purely to represent the result of an action being executed via the ActionFormProcessor. This class holds the Action executed and any optional results stored by the action.
    Author:
    Gavin Cornwell
    • Constructor Summary

      Constructors 
      Constructor Description
      ActionFormResult​(Action action, java.lang.Object result)
      Default constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Action getAction()
      Returns the action that was executed
      java.lang.Object getResult()
      Returns the result from the executed action
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • ActionFormResult

        public ActionFormResult​(Action action,
                                java.lang.Object result)
        Default constructor.
        Parameters:
        action - The action that was executed, can not be null
        result - The result from the action, can be null
    • Method Detail

      • getAction

        public Action getAction()
        Returns the action that was executed
        Returns:
        The executed Action
      • getResult

        public java.lang.Object getResult()
        Returns the result from the executed action
        Returns:
        The result or null if there were no results
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object