Class CSVHeader
java.lang.Object
fr.paris.lutece.plugins.forms.export.csv.CSVHeader
This class represents a CSV header
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeprecated.getColumnNumberForQuestions(List<Question> listQuestions) Returns the the question(and iterations) associated to the specified column indexgetListColumnNameToExport(List<Question> listQuestions) Builds the list of column names to exportvoidsetMapQuestionAndIterationColumn(Map<ArrayList<Integer>, Question> mapQuestionAndIterationColumn) Set the map of question and iteration columnsortByColumnNumber(Map<K, V> map) Sorts the map by the first item of the key (column number) and then by the second item of the key (iteration number)
-
Constructor Details
-
CSVHeader
public CSVHeader()Constructor
-
-
Method Details
-
addHeader
Deprecated.Adds the header for the specified question- Parameters:
question- the question to add
-
getListColumnNameToExport
Builds the list of column names to export- Parameters:
listQuestions-- Returns:
- the list of column names to export
-
getColumnNumberForQuestions
Returns the the question(and iterations) associated to the specified column index- Parameters:
listQuestions-- Returns:
- the map of column index and question(and iterations)
-
sortByColumnNumber
Sorts the map by the first item of the key (column number) and then by the second item of the key (iteration number)- Parameters:
mapQuestionAndIterationColumn-- Returns:
- the sorted map
-
getMapQuestionAndIterationColumn
- Returns:
- the _mapQuestionAndIterationColumn
-
setMapQuestionAndIterationColumn
public void setMapQuestionAndIterationColumn(Map<ArrayList<Integer>, Question> mapQuestionAndIterationColumn) Set the map of question and iteration column- Parameters:
mapQuestionAndIterationColumn-
-
getQuestionColumns
- Returns:
- the _listFinalColumnToExport
-