Class TextChoiceQuestionExportHandler
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.TextChoiceQuestionExportHandler
- All Implemented Interfaces:
QuestionExportHandler
handles text matrix and cloze questions
-
Field Summary
Fields inherited from class AbstractQuestionExportHandler
ANSWER_FIELD, LABEL_FIELD, POINTS_FIELD, REL_SURVEY_ANSWER -
Constructor Summary
Constructors -
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 returnEntityListbut in some cases need to join to entity lists for different entitiesgetTypes()Methods inherited from class AbstractMatrixExportHandler
getLabelFromAxis, getListForChoice, getSurveyAnswersSortedByMatrixXMethods inherited from class AbstractQuestionExportHandler
createImmutableList, getData
-
Constructor Details
-
TextChoiceQuestionExportHandler
public TextChoiceQuestionExportHandler()
-
-
Method Details
-
getTypes
-
getEntitiesToCreateLinesFor
Description copied from class:AbstractQuestionExportHandlerthis 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 returnEntityListbut in some cases need to join to entity lists for different entities- Specified by:
getEntitiesToCreateLinesForin classAbstractQuestionExportHandler- Parameters:
surveyBean- the survey bean to get the entities from- Returns:
- an iterable of
Entity
-
getColumnData
- Specified by:
getColumnDatain classAbstractQuestionExportHandler
-
getAnswerData
- Specified by:
getAnswerDatain classAbstractQuestionExportHandler
-