Package nz.org.riskscape.wizard.survey2
Interface Phase
- All Known Implementing Classes:
AnalysisPhase
,BasePhase
,InputDataPhase
,ReportPhase
,SamplePhase
public interface Phase
A way of linking up parts of a survey up so that it can be progressed through linearly
-
Method Summary
Modifier and TypeMethodDescriptionboolean
canSkip
(IncrementalBuildState buildState) boolean
contains
(QuestionSet questionSet) getAvailableQuestionSets
(IncrementalBuildState buildState) default BackingData
getBackingData
(IncrementalBuildState buildState, Question question) Allows a survey to delegate backing data requests to the phase that served up the questiondefault boolean
isComplete
(IncrementalBuildState buildState)
-
Method Details
-
getAvailableQuestionSets
-
canSkip
- Returns:
- true if the remaining question sets in this phase can be skipped, or false if they must be answered to move on to the next phase
-
getBackingData
Allows a survey to delegate backing data requests to the phase that served up the question
-
contains
- Returns:
- true if the given question set belongs to this phase. Used by the survey code to track a build state back to a phase
-
isComplete
- Returns:
- true if there are no more question sets that can be answered
-
getSurvey
Survey getSurvey()- Returns:
- the survey that this phase belongs to
-