Class BooleanExpressionAsker

All Implemented Interfaces:
Asker

public class BooleanExpressionAsker extends ExpressionAsker

Asker for getting an answer that is a boolean yielding Expression, such as for a filter condition.

  • Field Details

  • Constructor Details

    • BooleanExpressionAsker

      public BooleanExpressionAsker(nz.org.riskscape.engine.i18n.TranslationContext messageSource)
  • Method Details

    • askInteractively

      protected String askInteractively(CliPrompter cliPrompter, nz.org.riskscape.wizard.ExpressionHelper helper)
      Description copied from class: ExpressionAsker

      Build an expression interactively in the wizard, i.e. user picks what attribute to use, how to transform it, etc.

      Overrides:
      askInteractively in class ExpressionAsker
    • ask

      public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.wizard.Answer.Response> ask(AskRequest input)
      Description copied from class: BaseAsker

      Get a bound value from the user - note that the response's original input is returned from BaseAsker.askUnbound(AskRequest). This is partly here because the original API exposed this method on the interface, and keeping this method here keeps the refactoring/change noise down to a minimum while allowing the interface to change in the way we want to preserve the right amount of encapsulation

      Overrides:
      ask in class ExpressionAsker