1 package com.opencsv.bean.mocks.profile;
2
3 import com.opencsv.bean.*;
4 import com.opencsv.bean.customconverter.ConvertGermanToBoolean;
5 import org.apache.commons.collections4.MultiValuedMap;
6
7 import java.time.LocalDate;
8 import java.util.List;
9 import java.util.Stack;
10
11 public class ProfileNameNoDefault {
12
13 @CsvBindByName(capture = "int ([0-9]+) value", format = "int %s value", profiles = "profile 2")
14 private int int1;
15
16 @CsvCustomBindByName(converter = ConvertGermanToBoolean.class, profiles = "profile 2")
17 private boolean bool1;
18
19 @CsvBindAndSplitByNames(@CsvBindAndSplitByName(elementType = Float.class, collectionType = Stack.class, profiles = "profile 2"))
20 @CsvNumber(value = "0.0#E0", profiles = "profile 2")
21 private List<Float> floats;
22
23 @CsvBindAndJoinByName(elementType = LocalDate.class, profiles = "profile 2", column = "date.*")
24 @CsvDate(value = "dd. MMMM yyyy", profiles = "profile 2")
25 private MultiValuedMap<String, LocalDate> dates;
26
27 public int getInt1() {
28 return int1;
29 }
30
31 public void setInt1(int int1) {
32 this.int1 = int1;
33 }
34
35 public boolean isBool1() {
36 return bool1;
37 }
38
39 public void setBool1(boolean bool1) {
40 this.bool1 = bool1;
41 }
42
43 public List<Float> getFloats() {
44 return floats;
45 }
46
47 public void setFloats(List<Float> floats) {
48 this.floats = floats;
49 }
50
51 public MultiValuedMap<String, LocalDate> getDates() {
52 return dates;
53 }
54
55 public void setDates(MultiValuedMap<String, LocalDate> dates) {
56 this.dates = dates;
57 }
58 }