1 /*
2 * CSVeed (https://github.com/42BV/CSVeed)
3 *
4 * Copyright 2013-2023 CSVeed.
5 *
6 * All rights reserved. This program and the accompanying materials
7 * are made available under the terms of The Apache Software License,
8 * Version 2.0 which accompanies this distribution, and is available at
9 * https://www.apache.org/licenses/LICENSE-2.0.txt
10 */
11 package org.csveed.test.model;
12
13 import java.util.Date;
14
15 import org.csveed.annotations.CsvDate;
16
17 /**
18 * The Class BeanWithVariousTypes.
19 */
20 public class BeanWithVariousTypes {
21
22 /** The text. */
23 private String text;
24
25 /** The year. */
26 private Integer year;
27
28 /** The number. */
29 private Double number;
30
31 /** The date. */
32 @CsvDate(format = "yyyy-MM-dd")
33 private Date date;
34
35 /** The year month. */
36 @CsvDate(format = "yyyy-MM")
37 private Date yearMonth;
38
39 /**
40 * Gets the text.
41 *
42 * @return the text
43 */
44 public String getText() {
45 return text;
46 }
47
48 /**
49 * Sets the text.
50 *
51 * @param text
52 * the new text
53 */
54 public void setText(String text) {
55 this.text = text;
56 }
57
58 /**
59 * Gets the year.
60 *
61 * @return the year
62 */
63 public Integer getYear() {
64 return year;
65 }
66
67 /**
68 * Sets the year.
69 *
70 * @param year
71 * the new year
72 */
73 public void setYear(Integer year) {
74 this.year = year;
75 }
76
77 /**
78 * Gets the number.
79 *
80 * @return the number
81 */
82 public Double getNumber() {
83 return number;
84 }
85
86 /**
87 * Sets the number.
88 *
89 * @param number
90 * the new number
91 */
92 public void setNumber(Double number) {
93 this.number = number;
94 }
95
96 /**
97 * Gets the date.
98 *
99 * @return the date
100 */
101 public Date getDate() {
102 return date;
103 }
104
105 /**
106 * Sets the date.
107 *
108 * @param date
109 * the new date
110 */
111 public void setDate(Date date) {
112 this.date = date;
113 }
114
115 /**
116 * Gets the year month.
117 *
118 * @return the year month
119 */
120 public Date getYearMonth() {
121 return yearMonth;
122 }
123
124 /**
125 * Sets the year month.
126 *
127 * @param yearMonth
128 * the new year month
129 */
130 public void setYearMonth(Date yearMonth) {
131 this.yearMonth = yearMonth;
132 }
133 }