Class MatrixQuestionExportHandler
java.lang.Object
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractQuestionExportHandler
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractMatrixExportHandler
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.MatrixQuestionExportHandler
- All Implemented Interfaces:
QuestionExportHandler
handles single choice matrix and multiple choice matrix questions
-
Field Summary
Fields inherited from class ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractQuestionExportHandler
ANSWER_FIELD, LABEL_FIELD, POINTS_FIELD, REL_SURVEY_ANSWER
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetAnswerData
(Entity answer, SurveyBean surveyBean) getColumnData
(Entity answer, SurveyBean surveyBean) getEntitiesToCreateLinesFor
(SurveyBean surveyBean) this returns a iterable over which will be iterated, to create single lines different question types need to iterate over different entities, because different data is needed this returns a iterable, because we mostly want to returnEntityList
but in some cases need to join to entity lists for different entitiesgetTypes()
Methods inherited from class ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractMatrixExportHandler
getLabelFromAxis, getListForChoice, getSurveyAnswersSortedByMatrixX
Methods inherited from class ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractQuestionExportHandler
createImmutableList, getData
-
Constructor Details
-
MatrixQuestionExportHandler
public MatrixQuestionExportHandler()
-
-
Method Details
-
getTypes
-
getEntitiesToCreateLinesFor
Description copied from class:AbstractQuestionExportHandler
this returns a iterable over which will be iterated, to create single lines different question types need to iterate over different entities, because different data is needed this returns a iterable, because we mostly want to returnEntityList
but in some cases need to join to entity lists for different entities- Specified by:
getEntitiesToCreateLinesFor
in classAbstractQuestionExportHandler
- Parameters:
surveyBean
- the survey bean to get the entities from- Returns:
- an iterable of
Entity
-
getColumnData
- Specified by:
getColumnData
in classAbstractQuestionExportHandler
-
getAnswerData
- Specified by:
getAnswerData
in classAbstractQuestionExportHandler
-