Class Answer


  • public class Answer
    extends Object
    Holder object for answers given my a user on a Form
    Since:
    8.2.0
    Version:
    $Revision: 18134 $ $Date: 2015-12-15 17:29:32 -0200 (Tue, 15 Dec 2015) $
    • Constructor Detail

      • Answer

        public Answer()
    • Method Detail

      • getId

        public String getId()
        Returns this Answer's identifier.
        Returns:
        the identifier
        Since:
        8.2.0
      • setId

        public void setId​(String id)
        Sets the Answer identifier.
        Parameters:
        id - the identifier value to set.
        Since:
        8.2.0
      • getFormId

        public String getFormId()
        Returns the Form this Answer belongs to.
        Returns:
        the Form
        Since:
        8.2.0
      • setFormId

        public void setFormId​(String formId)
        Sets the Form this Answer belongs to.
        Parameters:
        formId - the Form
        Since:
        8.2.0
      • getAnswerDate

        public Date getAnswerDate()
        Returns the Date when the user answered the Form.
        Returns:
        the Date
        Since:
        8.2.0
      • setAnswerDate

        public void setAnswerDate​(Date answerDate)
        Sets the Date when the user answered the Form.
        Parameters:
        answerDate - the Date value to set.
        Since:
        8.2.0
      • setStatus

        public void setStatus​(AnswerStatus status)
        Sets the status of this Answer.
        Parameters:
        status - the status value to set.
        Since:
        8.2.0
      • getUserId

        public String getUserId()
        Returns the identifier of the User who answered the Form generating this Answer.
        Returns:
        the user identifier
        Since:
        8.2.0
      • setUserId

        public void setUserId​(String userId)
        Sets the identifier of the User who answered the Form generating this Answer.
        Parameters:
        userId - the user identifier value to set.
        Since:
        8.2.0
      • getAnswerValues

        public String getAnswerValues()
        Returns the JSON String with the values of all FormFields answered by the user in the Form.
        Returns:
        the JSON string of the answers
        Since:
        8.2.0
      • setAnswerValues

        public void setAnswerValues​(String values)
        Sets the JSON String with the values of all FormFields answered by the user in the Form
        Parameters:
        values - the JSON String to set as value.
        Since:
        8.2.0