org.supercsv.ext.io.BeanMappingCache Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of super-csv-annotation Show documentation
Show all versions of super-csv-annotation Show documentation
CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。
package org.supercsv.ext.io;
import org.supercsv.cellprocessor.ift.CellProcessor;
import org.supercsv.ext.builder.CsvBeanMapping;
/**
*
*
* @author T.TSUCHIE
*
*/
public class BeanMappingCache {
private final String[] header;
private final String[] nameMapping;
private final CellProcessor[] inputCellProcessors;
private final CellProcessor[] outputCellProcessors;
@SuppressWarnings("rawtypes")
public BeanMappingCache(CsvBeanMapping mapping) {
this.header = mapping.getHeader();
this.nameMapping = mapping.getNameMapping();
this.inputCellProcessors = mapping.getInputCellProcessor();
this.outputCellProcessors = mapping.getOutputCellProcessor();
}
public String[] getHeader() {
return header;
}
public String[] getNameMapping() {
return nameMapping;
}
public CellProcessor[] getInputCellProcessors() {
return inputCellProcessors;
}
public CellProcessor[] getOutputCellProcessors() {
return outputCellProcessors;
}
}