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
Modifier and TypeFieldDescriptionstatic final 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 Summary
-
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) 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).void
saveModelIniAndPipeline
(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves both model INI and a pipeline from the buildStatevoid
savePipelineDsl
(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Saves the pipeline produced by theIncrementalBuildState
as a plain-text DSL file within the project.ini file's directory.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).void
showAnswers
(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) void
showInputScope
(nz.org.riskscape.wizard.bld.IncrementalBuildState buildState) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods 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
IncrementalBuildState
as 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)
-