Package org.ametys.plugins.survey.data
Class SurveyAnswer
- java.lang.Object
-
- org.ametys.plugins.survey.data.SurveyAnswer
-
- Direct Known Subclasses:
ProcessInputAction.SurveyInputAnswer
public class SurveyAnswer extends Object
Class representing a survey answer, i.e. the response of a user to a question of the survey.
-
-
Field Summary
Fields Modifier and Type Field Description protected String_questionIdThe question ID.protected String_valueThe answer value.
-
Constructor Summary
Constructors Constructor Description SurveyAnswer()Build a SurveyAnswer object.SurveyAnswer(String questionId, String value)Build a SurveyAnswer object.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetQuestionId()Get the questionId.StringgetValue()Get the value.voidsetQuestionId(String questionId)Set the questionId.voidsetValue(String value)Set the value.
-
-
-
Field Detail
-
_questionId
protected String _questionId
The question ID.
-
-
Constructor Detail
-
SurveyAnswer
public SurveyAnswer()
Build a SurveyAnswer object.
-
SurveyAnswer
public SurveyAnswer(String questionId, String value)
Build a SurveyAnswer object.- Parameters:
questionId- the question ID.value- the answer value.
-
-
Method Detail
-
getQuestionId
public String getQuestionId()
Get the questionId.- Returns:
- the questionId
-
setQuestionId
public void setQuestionId(String questionId)
Set the questionId.- Parameters:
questionId- the questionId to set
-
-