Package org.ametys.plugins.survey.data
Class SurveyAnswer
java.lang.Object
org.ametys.plugins.survey.data.SurveyAnswer
- Direct Known Subclasses:
ProcessInputAction.SurveyInputAnswer
Class representing a survey answer, i.e. the response of a user to a question of the survey.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionBuild a SurveyAnswer object.SurveyAnswer(String questionId, String value) Build a SurveyAnswer object. -
Method Summary
Modifier and TypeMethodDescriptionGet the questionId.getValue()Get the value.voidsetQuestionId(String questionId) Set the questionId.voidSet the value.
-
Field Details
-
_questionId
The question ID. -
_value
The answer value.
-
-
Constructor Details
-
SurveyAnswer
public SurveyAnswer()Build a SurveyAnswer object. -
SurveyAnswer
Build a SurveyAnswer object.- Parameters:
questionId- the question ID.value- the answer value.
-
-
Method Details
-
getQuestionId
Get the questionId.- Returns:
- the questionId
-
setQuestionId
Set the questionId.- Parameters:
questionId- the questionId to set
-
getValue
Get the value.- Returns:
- the value
-
setValue
Set the value.- Parameters:
value- the value to set
-