Class ActionFactory

java.lang.Object
org.glassfish.pfl.basic.tools.file.ActionFactory

public class ActionFactory extends Object
  • Field Details

    • verbose

      private final int verbose
    • dryRun

      private final boolean dryRun
  • Constructor Details

    • ActionFactory

      public ActionFactory()
    • ActionFactory

      public ActionFactory(int verbose)
    • ActionFactory

      public ActionFactory(int verbose, boolean dryRun)
  • Method Details

    • getSkipAction

      public Scanner.Action getSkipAction()
      returns an action that returns true. If verbose is true, the action also displays the FileWrapper that was passed to it.
      Returns:
      The skip action.
    • getStopAction

      public Scanner.Action getStopAction()
      returns an action that returns false. If verbose is true, the action also displays the FileWrapper that was passed to it.
      Returns:
      The stop action.
    • getRecognizerAction

      public Recognizer getRecognizerAction()