Class TextQuestionExportHandler
java.lang.Object
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.AbstractQuestionExportHandler
ch.tocco.nice2.optional.survey.impl.action.export.questionhandlers.TextQuestionExportHandler
- All Implemented Interfaces:
QuestionExportHandler
handles text 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 surveyQuestionAnswer, SurveyBean surveyBean) getColumnData
(Entity surveyQuestionAnswer, 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.AbstractQuestionExportHandler
createImmutableList, getData
-
Constructor Details
-
TextQuestionExportHandler
public TextQuestionExportHandler()
-
-
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
-