Class CSVHeader


  • public class CSVHeader
    extends Object
    This class represents a CSV header
    • Constructor Detail

      • CSVHeader

        public CSVHeader()
        Constructor
    • Method Detail

      • addHeader

        @Deprecated
        public void addHeader​(Question question)
        Deprecated.
        Adds the header for the specified question
        Parameters:
        question - the question to add
      • getListColumnNameToExport

        public List<String> getListColumnNameToExport​(List<Question> listQuestions)
        Builds the list of column names to export
        Parameters:
        listQuestions -
        Returns:
        the list of column names to export
      • getColumnNumberForQuestions

        public Map<ArrayList<Integer>,​Question> getColumnNumberForQuestions​(List<Question> listQuestions)
        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

        public static <K extends List<Integer>,​V> Map<K,​V> sortByColumnNumber​(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)
        Parameters:
        mapQuestionAndIterationColumn -
        Returns:
        the sorted map
      • getMapQuestionAndIterationColumn

        public Map<ArrayList<Integer>,​Question> getMapQuestionAndIterationColumn()
        Returns:
        the _mapQuestionAndIterationColumn
      • setMapQuestionAndIterationColumn

        public void setMapQuestionAndIterationColumn​(Map<ArrayList<Integer>,​Question> mapQuestionAndIterationColumn)
        Set the map of question and iteration column
        Parameters:
        mapQuestionAndIterationColumn -
      • getQuestionColumns

        public List<Question> getQuestionColumns()
        Returns:
        the _listFinalColumnToExport