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 Details

  • Constructor Details

    • 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 Details

    • getQuestionId

      Get the questionId.
      Returns:
      the questionId
    • setQuestionId

      public void setQuestionId(String questionId)
      Set the questionId.
      Parameters:
      questionId - the questionId to set
    • getValue

      public String getValue()
      Get the value.
      Returns:
      the value
    • setValue

      public void setValue(String value)
      Set the value.
      Parameters:
      value - the value to set