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 Summary
FieldsFields inherited from class org.ametys.plugins.survey.data.SurveyAnswer
_questionId, _value -
Constructor Summary
ConstructorsConstructorDescriptionBuild a SurveyAnswer object.SurveyInputAnswer(SurveyQuestion question, Map<String, Set<String>> values) Build a SurveyAnswer object. -
Method Summary
Modifier 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
-
_question
The question. -
_values
The answer values.
-
-
Constructor Details
-
SurveyInputAnswer
public SurveyInputAnswer()Build a SurveyAnswer object. -
SurveyInputAnswer
Build a SurveyAnswer object.- Parameters:
question- the question ID.values- the answer value.
-
-
Method Details
-
getQuestion
Get the question.- Returns:
- the question
-
setQuestion
Set the question.- Parameters:
question- the question to set
-
getQuestionId
Description copied from class:SurveyAnswerGet the questionId.- Overrides:
getQuestionIdin classSurveyAnswer- Returns:
- the questionId
-
setQuestionId
Description copied from class:SurveyAnswerSet the questionId.- Overrides:
setQuestionIdin classSurveyAnswer- Parameters:
questionId- the questionId to set
-
getValuesMap
Get the values.- Returns:
- the values
-
setValueMap
Set the values.- Parameters:
values- the values to set
-
getValue
Description copied from class:SurveyAnswerGet the value.- Overrides:
getValuein classSurveyAnswer- Returns:
- the value
-
setValue
Description copied from class:SurveyAnswerSet the value.- Overrides:
setValuein classSurveyAnswer- Parameters:
value- the value to set
-