Package nz.org.riskscape.wizard.ask
Class AggregationFunctionPrototypeAsker
java.lang.Object
nz.org.riskscape.wizard.ask.BaseAsker
nz.org.riskscape.wizard.ask.CompatAsker
nz.org.riskscape.wizard.ask.AggregationFunctionPrototypeAsker
- All Implemented Interfaces:
Asker
An Asker
for FunctionCallPrototype
s that will ask extra questions if the chosen
aggregation function requires extra arguments for it's configuration.
-
Field Summary
Fields inherited from class nz.org.riskscape.wizard.ask.BaseAsker
enumTranslator, translationContext
-
Constructor Summary
ConstructorDescriptionAggregationFunctionPrototypeAsker
(nz.org.riskscape.engine.i18n.TranslationContext context) -
Method Summary
Modifier and TypeMethodDescriptionnz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.wizard.Answer.Response>
ask
(CliPrompter cliPrompter, nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, nz.org.riskscape.wizard.Question question) boolean
canAsk
(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, nz.org.riskscape.wizard.Question question) Methods inherited from class nz.org.riskscape.wizard.ask.CompatAsker
ask
Methods inherited from class nz.org.riskscape.wizard.ask.BaseAsker
askUnbound, getChoices, getLocale, getMessage, getMessageSource, getOptionalMessage, toChoice
-
Constructor Details
-
AggregationFunctionPrototypeAsker
public AggregationFunctionPrototypeAsker(nz.org.riskscape.engine.i18n.TranslationContext context)
-
-
Method Details
-
canAsk
public boolean canAsk(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, nz.org.riskscape.wizard.Question question) Description copied from interface:Asker
Determine whether this
Asker
is relevant for the givenQuestion
andIncrementalBuildState
- Returns:
- true if this
Asker
can and should drive the cli to answer the givenQuestion
.
-
ask
public nz.org.riskscape.problem.ResultOrProblems<nz.org.riskscape.wizard.Answer.Response> ask(CliPrompter cliPrompter, nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, nz.org.riskscape.wizard.Question question) - Specified by:
ask
in classCompatAsker
-