View Javadoc
1   package org.csveed.test.model;
2   
3   import org.csveed.annotations.CsvCell;
4   import org.csveed.annotations.CsvFile;
5   import org.csveed.bean.ColumnNameMapper;
6   
7   @CsvFile(mappingStrategy = ColumnNameMapper.class)
8   public class BeanWithNameMatching {
9   
10      @CsvCell(columnName = "postal code")
11      public String line3;
12  
13      @CsvCell(columnName = "street")
14      public String line1;
15  
16      @CsvCell(columnName = "CITY")
17      public String line2;
18  
19      public String getLine1() {
20          return line1;
21      }
22  
23      public void setLine1(String line1) {
24          this.line1 = line1;
25      }
26  
27      public String getLine2() {
28          return line2;
29      }
30  
31      public void setLine2(String line2) {
32          this.line2 = line2;
33      }
34  
35      public String getLine3() {
36          return line3;
37      }
38  
39      public void setLine3(String line3) {
40          this.line3 = line3;
41      }
42  }