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
Fields inherited from class org.ametys.plugins.survey.data.SurveyAnswer
_questionId, _value
-
Constructor Summary
ConstructorDescriptionBuild 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.void
setQuestion
(SurveyQuestion question) Set the question.void
setQuestionId
(String questionId) Set the questionId.void
Set the value.void
setValueMap
(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:SurveyAnswer
Get the questionId.- Overrides:
getQuestionId
in classSurveyAnswer
- Returns:
- the questionId
-
setQuestionId
Description copied from class:SurveyAnswer
Set the questionId.- Overrides:
setQuestionId
in 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:SurveyAnswer
Get the value.- Overrides:
getValue
in classSurveyAnswer
- Returns:
- the value
-
setValue
Description copied from class:SurveyAnswer
Set the value.- Overrides:
setValue
in classSurveyAnswer
- Parameters:
value
- the value to set
-