|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.objectplanet.survey.plugin.api.Response | +--com.objectplanet.survey.plugin.api.ResponseRating
Represents a response to the rating question. Response to a rating question is the position of the selected value. Set value to 0 if N/A field is selected.
Method Summary | |
int |
getValue()
Gets the answer to the rating question. |
void |
keepBusinessObject()
Get and keep business object. |
void |
releaseBusinessObject()
Release business object. |
void |
setValue(int answer)
Sets the answer to the rating question. |
Methods inherited from class com.objectplanet.survey.plugin.api.Response |
deleteEssayResponse, getErrorMessage, getErrorMessage, getEssayResponse, getFreeText, getQuestionNo, getRespondentId, hasBusinessObject, isPersisted, isValid, isValid, setEssayResponse, setFreeText |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
public void setValue(int answer) throws java.lang.IllegalArgumentException, SurveySystemException
intValue
is a rating
option position, from 1 to rating level. 0 is used for N/A (if applicable)
java.lang.IllegalArgumentException
- If the answer is invalid
SurveySystemException
- If an error occurs in the system.public int getValue() throws SurveySystemException
SurveySystemException
- If an error occurs in the system.public void keepBusinessObject() throws SurveySystemException
keepBusinessObject
in class Response
SurveySystemException
- If an error occurs in the system.public void releaseBusinessObject()
releaseBusinessObject
in class Response
|
Copyright © ObjectPlanet Inc. All Rights Reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |