All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.supercsv.ext.io.BeanMappingCache Maven / Gradle / Ivy

Go to download

CSVのJavaライブラリであるSuperCSVに、アノテーション機能を追加したライブラリです。

There is a newer version: 2.3
Show newest version
/*
 * BeanMappingCache.java
 * created in 2013/03/09
 *
 * (C) Copyright 2003-2013 GreenDay Project. All rights reserved.
 */
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;
    }
    
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy