1
2
3
4
5
6
7
8
9
10
11 package org.csveed.test.model;
12
13 import org.csveed.annotations.CsvFile;
14 import org.csveed.annotations.CsvHeaderName;
15 import org.csveed.annotations.CsvHeaderValue;
16 import org.csveed.bean.ColumnNameMapper;
17
18
19
20
21 @CsvFile(mappingStrategy = ColumnNameMapper.class, startIndexDynamicColumns = 3)
22 public class BeanCommodity {
23
24
25 private String commodity;
26
27
28 private String language;
29
30
31 @CsvHeaderName
32 private String day;
33
34
35 @CsvHeaderValue
36 private int amount;
37
38
39
40
41
42
43 public String getCommodity() {
44 return commodity;
45 }
46
47
48
49
50
51
52
53 public void setCommodity(String commodity) {
54 this.commodity = commodity;
55 }
56
57
58
59
60
61
62 public String getLanguage() {
63 return language;
64 }
65
66
67
68
69
70
71
72 public void setLanguage(String language) {
73 this.language = language;
74 }
75
76
77
78
79
80
81 public String getDay() {
82 return day;
83 }
84
85
86
87
88
89
90
91 public void setDay(String day) {
92 this.day = day;
93 }
94
95
96
97
98
99
100 public int getAmount() {
101 return amount;
102 }
103
104
105
106
107
108
109
110 public void setAmount(int amount) {
111 this.amount = amount;
112 }
113 }