Class Answer


  • public class Answer
    extends java.lang.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 java.lang.String getId()
        Returns this Answer's identifier.
        Returns:
        the identifier
        Since:
        8.2.0
      • setId

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

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

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

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

        public void setAnswerDate​(java.util.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 java.lang.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​(java.lang.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 java.lang.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​(java.lang.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