
com.github.mygreen.supercsv.cellprocessor.constraint.RequiredWordProvider 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.cellprocessor.constraint;
import java.util.Collection;
import com.github.mygreen.supercsv.annotation.constraint.CsvWordRequire;
import com.github.mygreen.supercsv.builder.FieldAccessor;
/**
* {@link CsvWordRequire}による必須語彙のチェックを行う際の語彙を提供するためのインタフェースです。
* 語彙を別ファイルやDBから取得する時などサービスクラスとして実装します。
*
* @since 2.0
* @author T.TSUCHIE
*
*/
@FunctionalInterface
public interface RequiredWordProvider {
/**
* 語彙の一覧を取得する。
* @param field フィールド情報
* @return 語彙を返します。チェック対象の文字がない場合は、空のリストを返します。
*/
Collection getRequiredWords(FieldAccessor field);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy