public class FormResponseManager extends Object
| Constructor and Description |
|---|
FormResponseManager(Form form)
Constructor
|
FormResponseManager(FormResponse formResponse)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Step step)
Adds the specified step
|
void |
addResponses(List<FormQuestionResponse> listFormQuestionResponse)
Adds the specified responses
|
List<FormQuestionResponse> |
findAllResponses()
Finds all responses
|
List<FormQuestionResponse> |
findResponsesFor(Step step)
Finds the responses for the specified step
|
Step |
getCurrentStep()
Gives the current step
|
FormResponse |
getFormResponse()
Gives the form response
|
List<Step> |
getValidatedSteps()
Gives the validated steps
|
Step |
goTo(int nStepIndex)
Goes to the step of the specified index
|
Step |
popStep()
Pops the last step
|
boolean |
validateFormResponses() |
public FormResponseManager(Form form)
form - the formpublic FormResponseManager(FormResponse formResponse)
formResponse - the form responsepublic Step getCurrentStep()
public FormResponse getFormResponse()
public void add(Step step)
step - the step to addpublic Step goTo(int nStepIndex)
nStepIndex - the step indexpublic List<FormQuestionResponse> findResponsesFor(Step step)
step - the steppublic List<FormQuestionResponse> findAllResponses()
public void addResponses(List<FormQuestionResponse> listFormQuestionResponse)
listFormQuestionResponse - the responses to addpublic Step popStep()
null if there no step to poppublic List<Step> getValidatedSteps()
public boolean validateFormResponses()
Copyright © 2022 City of Paris. All rights reserved.