1 /* 2 * Copyright 2007 Kasper B. Graversen 3 * 4 * Licensed under the Apache License, Version 2.0 (the "License"); 5 * you may not use this file except in compliance with the License. 6 * You may obtain a copy of the License at 7 * 8 * http://www.apache.org/licenses/LICENSE-2.0 9 * 10 * Unless required by applicable law or agreed to in writing, software 11 * distributed under the License is distributed on an "AS IS" BASIS, 12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 13 * See the License for the specific language governing permissions and 14 * limitations under the License. 15 */ 16 package org.supercsv.io.dozer; 17 18 import java.util.ArrayList; 19 import java.util.List; 20 21 /** 22 * Class used internally by CsvDozerBeanReader and CsvDozerBeanWriter for Dozer mapping between CSV columns and beans. As Dozer 23 * supports index-based mapping, the Reader/Writer's DozerBeanMapper just needs to be configured with the mappings 24 * between the column index and the associated field in the bean. 25 * 26 * @author James Bassett 27 * @since 2.0.0 28 */ 29 public class CsvDozerBeanData { 30 31 private List<Object> columns = new ArrayList<Object>(); 32 33 /** 34 * Gets the List of columns 35 * 36 * @return the List of columns 37 */ 38 public List<Object> getColumns() { 39 return columns; 40 } 41 42 /** 43 * Sets the List of columns 44 * 45 * @param columns 46 * the List of columns 47 */ 48 public void setColumns(final List<Object> columns) { 49 this.columns = columns; 50 } 51 52 }