Class Action<Handler extends ActionHandler,Data extends ActionData>

    • Method Detail

      • getActionType

        public ActionType getActionType()
        Get the action type
        Returns:
        The action type
      • getActionData

        public Data getActionData()
        Get the specified ActionData
        Returns:
        The specified ActionData
      • execute

        public abstract void execute(Handler handler,
                                     Data data)
        Execute the action
        Parameters:
        handler - The given action handler
        data - The given action data
      • canHandleData

        public abstract boolean canHandleData(Data data)
        Check if this action is able to handle the given data.
        Parameters:
        data - The given action data
        Returns:
        True if the action can handle the given data, false if not