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 org.csveed.annotations.CsvCell;
14  import org.csveed.annotations.CsvFile;
15  import org.csveed.bean.ColumnNameMapper;
16  
17  /**
18   * The Class BeanWithNameMatching.
19   */
20  @CsvFile(mappingStrategy = ColumnNameMapper.class)
21  public class BeanWithNameMatching {
22  
23      /** The line 3. */
24      @CsvCell(columnName = "postal code")
25      public String line3;
26  
27      /** The line 1. */
28      @CsvCell(columnName = "street")
29      public String line1;
30  
31      /** The line 2. */
32      @CsvCell(columnName = "CITY")
33      public String line2;
34  
35      /**
36       * Gets the line 1.
37       *
38       * @return the line 1
39       */
40      public String getLine1() {
41          return line1;
42      }
43  
44      /**
45       * Sets the line 1.
46       *
47       * @param line1
48       *            the new line 1
49       */
50      public void setLine1(String line1) {
51          this.line1 = line1;
52      }
53  
54      /**
55       * Gets the line 2.
56       *
57       * @return the line 2
58       */
59      public String getLine2() {
60          return line2;
61      }
62  
63      /**
64       * Sets the line 2.
65       *
66       * @param line2
67       *            the new line 2
68       */
69      public void setLine2(String line2) {
70          this.line2 = line2;
71      }
72  
73      /**
74       * Gets the line 3.
75       *
76       * @return the line 3
77       */
78      public String getLine3() {
79          return line3;
80      }
81  
82      /**
83       * Sets the line 3.
84       *
85       * @param line3
86       *            the new line 3
87       */
88      public void setLine3(String line3) {
89          this.line3 = line3;
90      }
91  }