1 package fr.ifremer.tutti.service.genericformat.csv;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25 import fr.ifremer.tutti.service.csv.AbstractTuttiImportExportModel;
26 import fr.ifremer.tutti.service.csv.TuttiCsvUtil;
27
28
29
30
31
32
33
34 public class SpeciesExportModel extends AbstractTuttiImportExportModel<SpeciesExportRow> {
35
36 public static SpeciesExportModel forExport(char separator) {
37
38 SpeciesExportModel exportModel = new SpeciesExportModel(separator);
39 exportModel.forExport();
40 return exportModel;
41
42 }
43
44 @Override
45 public SpeciesExportRow newEmptyInstance() {
46
47 return new SpeciesExportRow();
48
49 }
50
51 protected SpeciesExportModel(char separator) {
52 super(separator);
53 }
54
55 protected void forExport() {
56
57 newColumnForExport("Code_Taxon", SpeciesExportRow.SPECIES, TuttiCsvUtil.SPECIES_TECHNICAL_FORMATTER);
58 newColumnForExport("Code_Rubin", SpeciesExportRow.SPECIES, TuttiCsvUtil.SPECIES_REF_TAX_CODE_FORMATTER);
59 newColumnForExport("Nom_Scientifique", SpeciesExportRow.SPECIES, TuttiCsvUtil.SPECIES_FORMATTER);
60 newColumnForExport("Code_Campagne", SpeciesExportRow.SPECIES, TuttiCsvUtil.SPECIES_SURVEY_CODE_FORMATTER);
61
62 }
63
64 }