com.github.mygreen.supercsv.validation.ValidationContext 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 com.github.mygreen.supercsv.validation;
import org.supercsv.util.CsvContext;
import com.github.mygreen.supercsv.builder.BeanMapping;
/**
* 入力値検証する際のContext.
*
* @param Beanのタイプ。
* @since 2.0
* @author T.TSUCHIE
*
*/
public class ValidationContext {
private final CsvContext csvContext;
private final BeanMapping beanMapping;
public ValidationContext(final CsvContext csvContext, final BeanMapping beanMapping) {
this.csvContext = csvContext;
this.beanMapping = beanMapping;
}
public CsvContext getCsvContext() {
return csvContext;
}
public BeanMapping getBeanMapping() {
return beanMapping;
}
}