Class NoChange

java.lang.Object
nz.org.riskscape.wizard.bld.change.NoChange
All Implemented Interfaces:
PipelineChange

public class NoChange extends Object implements PipelineChange

An answer was given, but no change is to be made to the pipeline's structure

  • Constructor Details

    • NoChange

      public NoChange(Answer answer)
  • Method Details

    • skip

      public static IncrementalBuildState skip(IncrementalBuildState buildState, List<Question> toSkip)
      Returns:
      a handy change that represents an optional question being skipped. These have to be recorded to allow the QuestionSet#getNextQuestions(IncrementalBuildState) routine to record the user's option to not answer some questions.
    • make

      public nz.org.riskscape.problem.ResultOrProblems<IncrementalBuildState> make(IncrementalBuildState currentState) throws BadPipelineChangeException
      Description copied from interface: PipelineChange

      Attempt to create a new IncrementalBuildState for this change

      Specified by:
      make in interface PipelineChange
      Returns:
      a new IncrementalBuildState with this change applied
      Throws:
      BadPipelineChangeException - if something went wrong that wasn't the user's fault
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getAnswer

      public Answer getAnswer()
      Specified by:
      getAnswer in interface PipelineChange
      Returns:
      the Answer that was ultimately responsible for this PipelineChange being introduced. Note that this might not be the only thing that predicated this change, but it is the last thing that caused it (the straw that broke the camel's back, so to speak)