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

com.github.mygreen.supercsv.cellprocessor.constraint.RequiredWordProvider Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.3
Show newest version
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