1
2
3
4
5
6
7
8
9
10
11 package org.csveed.test.model;
12
13 import java.util.Date;
14
15 import org.csveed.annotations.CsvDate;
16
17
18
19
20 public class BeanWithVariousTypes {
21
22
23 private String text;
24
25
26 private Integer year;
27
28
29 private Double number;
30
31
32 @CsvDate(format = "yyyy-MM-dd")
33 private Date date;
34
35
36 @CsvDate(format = "yyyy-MM")
37 private Date yearMonth;
38
39
40
41
42
43
44 public String getText() {
45 return text;
46 }
47
48
49
50
51
52
53
54 public void setText(String text) {
55 this.text = text;
56 }
57
58
59
60
61
62
63 public Integer getYear() {
64 return year;
65 }
66
67
68
69
70
71
72
73 public void setYear(Integer year) {
74 this.year = year;
75 }
76
77
78
79
80
81
82 public Double getNumber() {
83 return number;
84 }
85
86
87
88
89
90
91
92 public void setNumber(Double number) {
93 this.number = number;
94 }
95
96
97
98
99
100
101 public Date getDate() {
102 return date;
103 }
104
105
106
107
108
109
110
111 public void setDate(Date date) {
112 this.date = date;
113 }
114
115
116
117
118
119
120 public Date getYearMonth() {
121 return yearMonth;
122 }
123
124
125
126
127
128
129
130 public void setYearMonth(Date yearMonth) {
131 this.yearMonth = yearMonth;
132 }
133 }