|
||||||||
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.ResponseMatrix
public class ResponseMatrix
Represents a response to the matrix question.
ATTENTION: It is possible to create invalid matrix
response. Make sure that you follow the rules set for the matrix question.
I.e do not set two values for one matrix row inside the cellgroup
CELLGROUP_ONE_PER_ROW.
Method Summary | |
---|---|
void |
clearCellValues()
Clear cell responses. |
java.lang.String |
getCellValue(int columnPosition,
int rowPosition,
int cellType)
Gets the cell value |
java.lang.String |
getErrorMessage(int columnPosition,
int rowPosition)
Gets the error message for an matrix cell. |
boolean |
isValid(int columnPosition,
int rowPosition)
Checks if response to the matrix cell is valid. |
void |
keepBusinessObject()
Get and keep business object. |
void |
releaseBusinessObject()
Release business object. |
void |
removeCellValue(int columnPosition,
int rowPosition)
Remove cell value |
void |
setCellValue(int columnPosition,
int rowPosition,
int cellType,
java.lang.String answer)
Sets response to the matrix cell. |
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 setCellValue(int columnPosition, int rowPosition, int cellType, java.lang.String answer) throws SurveySystemException, java.lang.IllegalArgumentException
columnPosition
- Matrix cell column position, starts at
0rowPosition
- Matrix cell row position, starts at 0answer
- The response to the matrix cellcellType
- Matrix cell type. One of the defined in
QuestionMatrix
java.lang.IllegalArgumentException
- If illegal positions
SurveySystemException
- If an error occurs in the system.public java.lang.String getCellValue(int columnPosition, int rowPosition, int cellType) throws SurveySystemException, java.lang.IllegalArgumentException
columnPosition
- Matrix cell column position, starts at
0rowPosition
- Matrix cell row position, starts at 0cellType
- Matrix cell type. One of the defined in
QuestionMatrix
java.lang.IllegalArgumentException
- If illegal parameters
SurveySystemException
- If an error occurs in the system.public java.lang.String getErrorMessage(int columnPosition, int rowPosition) throws SurveySystemException
columnPosition
- Matrix cell column position, starts at 0rowPosition
- Matrix cell row position, starts at 0
SurveySystemException
- If any error occurs in the system.public boolean isValid(int columnPosition, int rowPosition) throws SurveySystemException
columnPosition
- Matrix cell column position, starts at 0rowPosition
- Matrix cell row position, starts at 0
SurveySystemException
- If any error occurs in the system.public void clearCellValues() 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
public void removeCellValue(int columnPosition, int rowPosition) throws SurveySystemException, java.lang.IllegalArgumentException
columnPosition
- Matrix cell column position, starts at
0rowPosition
- Matrix cell row position, starts at 0
java.lang.IllegalArgumentException
- If illegal positions
SurveySystemException
- If an error occurs in the system.
|
Copyright ? ObjectPlanet Inc. All Rights Reserved. | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |