|
|
|
|
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.torweg.pulse.component.survey.SurveyProgress
public class SurveyProgress
A SurveyProgress is a JAXB-able Object to monitor
the current Surveys progress.
| Constructor Summary | |
|---|---|
protected |
SurveyProgress()
Default constructor. |
|
SurveyProgress(Survey sur, Questionnaire quest)
Creates a new SurveyProgress with the given
Survey and the given Questionnaire. |
| Method Summary | |
|---|---|
void |
answer(int index, ServiceRequest request)
Adds an {@code AbstractTypedAnswer<? |
int |
getLastSuccessfulQuestionIndex()
Returns the index of the last successfully answered AbstractQuestion of the Survey. |
java.lang.Long |
getProgressPercent()
Returns the progress-percentage of the SurveyProgress by
setting of the {@code AbstractTypedAnswer<? |
Questionnaire |
getQuestionnaire()
Returns the Questionnaire of the SurveyProgress
. |
Survey |
getSurvey()
Returns the Survey of the SurveyProgress. |
SurveyToken |
getToken()
Returns the SurveyToken of the SurveyProgress. |
SurveyProgress |
gotoPreviousLastSuccessfulQuestionIndex()
Sets the index of the last successfully answered question of the SurveyProgress to the previous question. |
boolean |
isValid()
Indicates if the last AbstractQuestion's
AbstractTypedAnswer was valid. |
protected void |
setQuestionnaire(Questionnaire quest)
Sets the Questionnaire for the SurveyProgress. |
protected void |
setSurvey(Survey sur)
Sets the Survey for the SurveyProgress. |
void |
setSurveyToken(SurveyToken surveyTok)
Sets the given SurveyToken for the
SurveyProgres and adds it to the Questionnaire. |
void |
setValid(boolean valid)
Sets the isValid. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
protected SurveyProgress()
public SurveyProgress(Survey sur, Questionnaire quest)
SurveyProgress with the given
Survey and the given Questionnaire.
sur - the Surveyquest - the Questionnaire| Method Detail |
|---|
protected final void setSurvey(Survey sur)
Survey for the SurveyProgress.
sur - the Survey to setpublic final Survey getSurvey()
Survey of the SurveyProgress.
Surveyprotected final void setQuestionnaire(Questionnaire quest)
Questionnaire for the SurveyProgress.
quest - the Questionnaire to setpublic final Questionnaire getQuestionnaire()
Questionnaire of the SurveyProgress
.
Questionnaire of the SurveyProgresspublic final void setValid(boolean valid)
valid - the value to setpublic final boolean isValid()
AbstractQuestion's
AbstractTypedAnswer was valid.
public final int getLastSuccessfulQuestionIndex()
AbstractQuestion of the Survey.
public final SurveyProgress gotoPreviousLastSuccessfulQuestionIndex()
SurveyProgress to the previous question.
SurveyProgresspublic final java.lang.Long getProgressPercent()
SurveyProgress by
setting of the AbstractTypedAnswer<?>s of the
Questionnaire against the AbstractQuestions of
the Survey.
SurveyProgresspublic final void answer(int index, ServiceRequest request)
AbstractTypedAnswer<?> to the
Questionnaire of the SurveyProgress.
index - the index of the question to answerrequest - the ServiceRequestpublic final void setSurveyToken(SurveyToken surveyTok)
SurveyToken for the
SurveyProgres and adds it to the Questionnaire.
surveyTok - the SurveyTokenpublic final SurveyToken getToken()
SurveyToken of the SurveyProgress.
SurveyToken of the SurveyProgress
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||