View Javadoc
1   package org.csveed.test.model;
2   
3   import java.util.Date;
4   
5   import org.csveed.annotations.CsvDate;
6   
7   public class BeanWithVariousTypes {
8   
9       private String text;
10  
11      private Integer year;
12  
13      private Double number;
14  
15      @CsvDate(format = "yyyy-MM-dd")
16      private Date date;
17  
18      @CsvDate(format = "yyyy-MM")
19      private Date yearMonth;
20  
21      public String getText() {
22          return text;
23      }
24  
25      public void setText(String text) {
26          this.text = text;
27      }
28  
29      public Integer getYear() {
30          return year;
31      }
32  
33      public void setYear(Integer year) {
34          this.year = year;
35      }
36  
37      public Double getNumber() {
38          return number;
39      }
40  
41      public void setNumber(Double number) {
42          this.number = number;
43      }
44  
45      public Date getDate() {
46          return date;
47      }
48  
49      public void setDate(Date date) {
50          this.date = date;
51      }
52  
53      public Date getYearMonth() {
54          return yearMonth;
55      }
56  
57      public void setYearMonth(Date yearMonth) {
58          this.yearMonth = yearMonth;
59      }
60  }