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.CsvFile;
14 import org.csveed.annotations.CsvHeaderName;
15 import org.csveed.annotations.CsvHeaderValue;
16 import org.csveed.bean.ColumnNameMapper;
17
18 /**
19 * The Class BeanCommodity.
20 */
21 @CsvFile(mappingStrategy = ColumnNameMapper.class, startIndexDynamicColumns = 3)
22 public class BeanCommodity {
23
24 /** The commodity. */
25 private String commodity;
26
27 /** The language. */
28 private String language;
29
30 /** The day. */
31 @CsvHeaderName
32 private String day;
33
34 /** The amount. */
35 @CsvHeaderValue
36 private int amount;
37
38 /**
39 * Gets the commodity.
40 *
41 * @return the commodity
42 */
43 public String getCommodity() {
44 return commodity;
45 }
46
47 /**
48 * Sets the commodity.
49 *
50 * @param commodity
51 * the new commodity
52 */
53 public void setCommodity(String commodity) {
54 this.commodity = commodity;
55 }
56
57 /**
58 * Gets the language.
59 *
60 * @return the language
61 */
62 public String getLanguage() {
63 return language;
64 }
65
66 /**
67 * Sets the language.
68 *
69 * @param language
70 * the new language
71 */
72 public void setLanguage(String language) {
73 this.language = language;
74 }
75
76 /**
77 * Gets the day.
78 *
79 * @return the day
80 */
81 public String getDay() {
82 return day;
83 }
84
85 /**
86 * Sets the day.
87 *
88 * @param day
89 * the new day
90 */
91 public void setDay(String day) {
92 this.day = day;
93 }
94
95 /**
96 * Gets the amount.
97 *
98 * @return the amount
99 */
100 public int getAmount() {
101 return amount;
102 }
103
104 /**
105 * Sets the amount.
106 *
107 * @param amount
108 * the new amount
109 */
110 public void setAmount(int amount) {
111 this.amount = amount;
112 }
113 }