View Javadoc
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 ProfilePositionNoDefault {
12  
13      @CsvBindByPosition(position = 0, capture = "int ([0-9]+) value", format = "int %s value", profiles = "profile 2")
14      private int int1;
15  
16      @CsvCustomBindByPosition(position = 1, converter = ConvertGermanToBoolean.class, profiles = "profile 2")
17      private boolean bool1;
18  
19      @CsvBindAndSplitByPositions(@CsvBindAndSplitByPosition(position = 2, 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      @CsvBindAndJoinByPosition(position = "3-4", elementType = LocalDate.class, profiles = "profile 2")
24      @CsvDate(value = "dd. MMMM yyyy", profiles = "profile 2")
25      private MultiValuedMap<Integer, 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<Integer, LocalDate> getDates() {
52          return dates;
53      }
54  
55      public void setDates(MultiValuedMap<Integer, LocalDate> dates) {
56          this.dates = dates;
57      }
58  }