Package lumis.service.formbuilder
Class Answer
- java.lang.Object
-
- lumis.service.formbuilder.Answer
-
public class Answer extends java.lang.Object
Holder object for answers given my a user on aForm
- Since:
- 8.2.0
- Version:
- $Revision: 18134 $ $Date: 2015-12-15 17:29:32 -0200 (Tue, 15 Dec 2015) $
-
-
Constructor Summary
Constructors Constructor Description Answer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getAnswerDate()
Returns theDate
when the user answered theForm
.java.lang.String
getAnswerValues()
Returns the JSON String with the values of allFormFields
answered by the user in theForm
.java.lang.String
getFormId()
java.lang.String
getId()
Returns thisAnswer's
identifier.AnswerStatus
getStatus()
java.lang.String
getUserId()
void
setAnswerDate(java.util.Date answerDate)
Sets theDate
when the user answered theForm
.void
setAnswerValues(java.lang.String values)
Sets the JSON String with the values of allFormFields
answered by the user in theForm
void
setFormId(java.lang.String formId)
void
setId(java.lang.String id)
Sets theAnswer
identifier.void
setStatus(AnswerStatus status)
void
setUserId(java.lang.String userId)
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns thisAnswer's
identifier.- Returns:
- the identifier
- Since:
- 8.2.0
-
setId
public void setId(java.lang.String id)
Sets theAnswer
identifier.- Parameters:
id
- the identifier value to set.- Since:
- 8.2.0
-
getFormId
public java.lang.String getFormId()
- Returns:
- the
Form
- Since:
- 8.2.0
-
setFormId
public void setFormId(java.lang.String formId)
- Parameters:
formId
- theForm
- Since:
- 8.2.0
-
getAnswerDate
public java.util.Date getAnswerDate()
Returns theDate
when the user answered theForm
.- Returns:
- the
Date
- Since:
- 8.2.0
-
setAnswerDate
public void setAnswerDate(java.util.Date answerDate)
Sets theDate
when the user answered theForm
.- Parameters:
answerDate
- theDate
value to set.- Since:
- 8.2.0
-
getStatus
public AnswerStatus getStatus()
- Returns:
- the
status
- Since:
- 8.2.0
-
setStatus
public void setStatus(AnswerStatus status)
- Parameters:
status
- thestatus
value to set.- Since:
- 8.2.0
-
getUserId
public java.lang.String getUserId()
- Returns:
- the user identifier
- Since:
- 8.2.0
-
setUserId
public void setUserId(java.lang.String userId)
- 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 allFormFields
answered by the user in theForm
.- 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 allFormFields
answered by the user in theForm
- Parameters:
values
- the JSON String to set as value.- Since:
- 8.2.0
-
-