|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.objectplanet.survey.plugin.api.Response
com.objectplanet.survey.plugin.api.ResponseMultiple
public class ResponseMultiple
Represents a response to the multiple choice question. Response to a multiple choice question is an array of selected option positions.
| Method Summary | |
|---|---|
void |
clearOptionValues()
Clear option values and 'other-field' value. |
boolean |
getOptionValue(int index)
Gets the value for multiple option. |
boolean[] |
getOptionValues()
Gets the array of option values. |
java.lang.String |
getOtherValue()
Gets the response to the 'other-field' |
void |
keepBusinessObject()
Get and keep business object. |
void |
releaseBusinessObject()
Release business object. |
void |
setOptionValue(int index,
boolean value)
Sets the value (selected/not selected) for multiple option. |
void |
setOtherValue(java.lang.String otherAnswer)
Sets the input for multiple other field, if applicable. |
| 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 |
|---|
public void setOptionValue(int index,
boolean value)
throws SurveySystemException,
java.lang.IllegalArgumentException
index - Multiple option index, starts at 0.value - The option value.
java.lang.IllegalArgumentException - If illegal index
SurveySystemException - If an error occurs in the system.
public void setOtherValue(java.lang.String otherAnswer)
throws SurveySystemException,
java.lang.IllegalArgumentException
otherAnswer - Response to the other field.
java.lang.IllegalArgumentException - If illegal index or other filed is not on.
SurveySystemException - If an error occurs in the system.
public boolean getOptionValue(int index)
throws SurveySystemException,
java.lang.IllegalArgumentException
index - Option index, starts at 0.
java.lang.IllegalArgumentException - If illegal index
SurveySystemException - If an error occurs in the system.
public boolean[] getOptionValues()
throws SurveySystemException
SurveySystemException - If an error occurs in the system.
public java.lang.String getOtherValue()
throws SurveySystemException,
java.lang.IllegalArgumentException
java.lang.IllegalArgumentException - If illegal index
SurveySystemException - If an error occurs in the system.
public void clearOptionValues()
throws SurveySystemException
SurveySystemException - If an error occurs in the system.
public void keepBusinessObject()
throws SurveySystemException
keepBusinessObject in class ResponseSurveySystemException - 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 | |||||||