View Javadoc
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  import org.csveed.annotations.CsvFile;
17  
18  /**
19   * The Class BeanWithoutHeader.
20   */
21  @CsvFile(useHeader = false)
22  public class BeanWithoutHeader {
23  
24      /** The text. */
25      private String text;
26  
27      /** The year. */
28      private Integer year;
29  
30      /** The number. */
31      private Double number;
32  
33      /** The date. */
34      @CsvDate(format = "yyyy-MM-dd")
35      private Date date;
36  
37      /** The year month. */
38      @CsvDate(format = "yyyy-MM")
39      private Date yearMonth;
40  
41      /**
42       * Gets the text.
43       *
44       * @return the text
45       */
46      public String getText() {
47          return text;
48      }
49  
50      /**
51       * Sets the text.
52       *
53       * @param text
54       *            the new text
55       */
56      public void setText(String text) {
57          this.text = text;
58      }
59  
60      /**
61       * Gets the year.
62       *
63       * @return the year
64       */
65      public Integer getYear() {
66          return year;
67      }
68  
69      /**
70       * Sets the year.
71       *
72       * @param year
73       *            the new year
74       */
75      public void setYear(Integer year) {
76          this.year = year;
77      }
78  
79      /**
80       * Gets the number.
81       *
82       * @return the number
83       */
84      public Double getNumber() {
85          return number;
86      }
87  
88      /**
89       * Sets the number.
90       *
91       * @param number
92       *            the new number
93       */
94      public void setNumber(Double number) {
95          this.number = number;
96      }
97  
98      /**
99       * Gets the date.
100      *
101      * @return the date
102      */
103     public Date getDate() {
104         return date;
105     }
106 
107     /**
108      * Sets the date.
109      *
110      * @param date
111      *            the new date
112      */
113     public void setDate(Date date) {
114         this.date = date;
115     }
116 
117     /**
118      * Gets the year month.
119      *
120      * @return the year month
121      */
122     public Date getYearMonth() {
123         return yearMonth;
124     }
125 
126     /**
127      * Sets the year month.
128      *
129      * @param yearMonth
130      *            the new year month
131      */
132     public void setYearMonth(Date yearMonth) {
133         this.yearMonth = yearMonth;
134     }
135 }