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.CsvConverter;
14  import org.csveed.annotations.CsvFile;
15  import org.csveed.test.converters.BeanSimpleConverter;
16  
17  /**
18   * The Class BeanWithConverter.
19   */
20  @CsvFile(useHeader = false)
21  public class BeanWithConverter {
22  
23      /** The bean. */
24      @CsvConverter(converter = BeanSimpleConverter.class)
25      private BeanSimple bean;
26  
27      /**
28       * Gets the bean.
29       *
30       * @return the bean
31       */
32      public BeanSimple getBean() {
33          return bean;
34      }
35  
36      /**
37       * Sets the bean.
38       *
39       * @param bean
40       *            the new bean
41       */
42      public void setBean(BeanSimple bean) {
43          this.bean = bean;
44      }
45  }