Annotation Type CsvColumn


  • @Retention(RUNTIME)
    public @interface CsvColumn
    Map csv file column to property
    Since:
    20.12.17
    Author:
    Timo Reymann
    • Optional Element Summary

      Optional Elements 
      Modifier and Type Optional Element Description
      String format
      Format for column, used only if datatype is compatible with formatting e. g.
      String headerName
      Header name, used if the csv should have an header or should be read by header name
      int index
      Index of csv column
    • Element Detail

      • index

        int index
        Index of csv column
        Returns:
        Index of csv column
        Default:
        -1
      • headerName

        String headerName
        Header name, used if the csv should have an header or should be read by header name
        Returns:
        Header name
        Default:
        ""
      • format

        String format
        Format for column, used only if datatype is compatible with formatting e. g. LocalDate
        Returns:
        Format of column
        Default:
        "none"