Package nz.org.riskscape.wizard
Class WizardActions
java.lang.Object
nz.org.riskscape.wizard.WizardActions
- All Implemented Interfaces:
nz.org.riskscape.engine.cli.PipelineRenderer
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ActionThe action that is returned when the user selects the 'continue' option - allows calling code to detect that they didn't actually want to do anything -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetRenderedPipeline(nz.org.riskscape.engine.pipeline.RealizedPipeline pipeline) Renders a RealizedPipeline, as perPipelineRenderer.getSaveOrShowActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) getSurveyCompleteActions(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) voidsaveModelIni(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves the wizard content as a model INI file to the given relativeTo directory (useful for testing).voidsaveModelIniAndPipeline(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves both model INI and a pipeline from the buildStatevoidsavePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves the pipeline produced by theIncrementalBuildStateas a plain-text DSL file within the project.ini file's directory.voidsavePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, String pipelineName, boolean writeModelFile) Saves the pipeline DSL to the given relativeTo directory (useful for testing).voidshowAnswers(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) voidshowInputScope(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface nz.org.riskscape.engine.cli.PipelineRenderer
boundPipelineParameterToString, graph, printPipeline, printPipeline, printType
-
Field Details
-
CONTINUE_ACTION
The action that is returned when the user selects the 'continue' option - allows calling code to detect that they didn't actually want to do anything
-
-
Constructor Details
-
WizardActions
-
-
Method Details
-
saveModelIniAndPipeline
public void saveModelIniAndPipeline(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves both model INI and a pipeline from the buildState
-
savePipelineDsl
public void savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState, String pipelineName, boolean writeModelFile) Saves the pipeline DSL to the given relativeTo directory (useful for testing).
-
savePipelineDsl
public void savePipelineDsl(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves the pipeline produced by the
IncrementalBuildStateas a plain-text DSL file within the project.ini file's directory. -
saveModelIni
public void saveModelIni(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves the wizard content as a model INI file to the given relativeTo directory (useful for testing).
-
getRenderedPipeline
Renders a RealizedPipeline, as per
PipelineRenderer.Note that this only renders valid pipelines, as that is all the wizard should produce.
-
getSaveOrShowActions
-
getSurveyCompleteActions
-
showInputScope
public void showInputScope(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) -
showAnswers
public void showAnswers(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState)
-