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

com.github.mygreen.supercsv.annotation.CsvColumn Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.3
Show newest version
package com.github.mygreen.supercsv.annotation;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

import org.supercsv.cellprocessor.ift.CellProcessor;

import com.github.mygreen.supercsv.builder.ProcessorBuilder;


/**
 * CSVのカラムであることを表現するためのアノテーションです。
 * 

フィールドに指定します。

* * @version 2.0 * @since 1.0 * @author T.TSUCHIE * */ @Target({ElementType.FIELD}) @Retention(RetentionPolicy.RUNTIME) @Documented public @interface CsvColumn { /** * 列番号を指定します。 *

他のカラムの値との重複は許可しません。

* @return 番号は1から始まります。 */ int number(); /** * 見出しとなるラベルを指定します。 * @return 指定しない場合、フィールド名が適用されます。 */ String label() default ""; /** * 独自の{@link ProcessorBuilder}を指定して{@link CellProcessor} を組み立てたい場合に指定します。 *

サポートしていないクラスタイプに対応するときなどに指定します。

* @return {@link ProcessorBuilder}を実装したクラスを指定します。 */ @SuppressWarnings("rawtypes") Class[] builder() default {}; }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy