Package org.ametys.plugins.survey.answer
Class ProcessInputAction.SurveyInputAnswer
java.lang.Object
org.ametys.plugins.survey.data.SurveyAnswer
org.ametys.plugins.survey.answer.ProcessInputAction.SurveyInputAnswer
- Enclosing class:
- ProcessInputAction
Class representing a survey answer, i.e. the response of a user to a question of the survey.
- 
Field SummaryFieldsFields inherited from class org.ametys.plugins.survey.data.SurveyAnswer_questionId, _value
- 
Constructor SummaryConstructorsConstructorDescriptionBuild a SurveyAnswer object.SurveyInputAnswer(SurveyQuestion question, Map<String, Set<String>> values) Build a SurveyAnswer object.
- 
Method SummaryModifier and TypeMethodDescriptionGet the question.Get the questionId.getValue()Get the value.Get the values.voidsetQuestion(SurveyQuestion question) Set the question.voidsetQuestionId(String questionId) Set the questionId.voidSet the value.voidsetValueMap(Map<String, Set<String>> values) Set the values.
- 
Field Details- 
_questionThe question.
- 
_valuesThe answer values.
 
- 
- 
Constructor Details- 
SurveyInputAnswerpublic SurveyInputAnswer()Build a SurveyAnswer object.
- 
SurveyInputAnswerBuild a SurveyAnswer object.- Parameters:
- question- the question ID.
- values- the answer value.
 
 
- 
- 
Method Details- 
getQuestionGet the question.- Returns:
- the question
 
- 
setQuestionSet the question.- Parameters:
- question- the question to set
 
- 
getQuestionIdDescription copied from class:SurveyAnswerGet the questionId.- Overrides:
- getQuestionIdin class- SurveyAnswer
- Returns:
- the questionId
 
- 
setQuestionIdDescription copied from class:SurveyAnswerSet the questionId.- Overrides:
- setQuestionIdin class- SurveyAnswer
- Parameters:
- questionId- the questionId to set
 
- 
getValuesMapGet the values.- Returns:
- the values
 
- 
setValueMapSet the values.- Parameters:
- values- the values to set
 
- 
getValueDescription copied from class:SurveyAnswerGet the value.- Overrides:
- getValuein class- SurveyAnswer
- Returns:
- the value
 
- 
setValueDescription copied from class:SurveyAnswerSet the value.- Overrides:
- setValuein class- SurveyAnswer
- Parameters:
- value- the value to set
 
 
-