public class ResponseMultiple extends Response
Modifier and Type | Method and Description |
---|---|
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.
|
deleteEssayResponse, deleteIntextResponse, getErrorMessage, getErrorMessage, getEssayResponse, getFreeText, getIntextResponse, getQuestionNo, getRespondentId, getResponseDate, hasBusinessObject, isPersisted, isValid, isValid, setEssayResponse, setFreeText, setIntextResponse
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 indexSurveySystemException
- 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 indexSurveySystemException
- 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 indexSurveySystemException
- 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 Response
SurveySystemException
- If an error occurs in the system.public void releaseBusinessObject()
releaseBusinessObject
in class Response
Built on September 5 2019