com.objectplanet.survey.plugin.api
Class ResponseNumeric

java.lang.Object
  extended by com.objectplanet.survey.plugin.api.Response
      extended by com.objectplanet.survey.plugin.api.ResponseNumeric

public class ResponseNumeric
extends Response

Represents a response to the numeric question.

Author:
Irina Brun

Method Summary
 java.lang.String getValue(int numericType)
          Gets the answer to the numeric question.
 void keepBusinessObject()
          Get and keep business object.
 void releaseBusinessObject()
          Release business object.
 void setValue(java.lang.String value)
          Sets the answer for the numeric question.
 
Methods inherited from class com.objectplanet.survey.plugin.api.Response
deleteEssayResponse, deleteIntextResponse, getErrorMessage, getErrorMessage, getEssayResponse, getFreeText, getIntextResponse, getQuestionNo, getRespondentId, getResponseDate, hasBusinessObject, isPersisted, isValid, isValid, setEssayResponse, setFreeText, setIntextResponse
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

setValue

public void setValue(java.lang.String value)
              throws SurveySystemException
Sets the answer for the numeric question.

Parameters:
value - The answer
Throws:
SurveySystemException - If an error occurs in the system.

getValue

public java.lang.String getValue(int numericType)
                          throws SurveySystemException
Gets the answer to the numeric question.

Parameters:
numericType - Numeric type. One of the types defined in QuestionNumeric
Returns:
The answer
Throws:
SurveySystemException - If an error occurs in the system.

keepBusinessObject

public void keepBusinessObject()
                        throws SurveySystemException
Get and keep business object. See ATTENTION.

Overrides:
keepBusinessObject in class Response
Throws:
SurveySystemException - If an error occurs in the system.

releaseBusinessObject

public void releaseBusinessObject()
Release business object. See ATTENTION .

Overrides:
releaseBusinessObject in class Response

Copyright ? ObjectPlanet Inc. All Rights Reserved.

Built on December 20 2016