
com.github.mygreen.supercsv.annotation.CsvOverridesAttribute 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.annotation;
import java.lang.annotation.Annotation;
import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Repeatable;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* 合成のアノテーションを作成する際に、アノテーションの属性を特定して上書きするためのアノテーションです。
*
* @since 2.0
* @author T.TSUCHIE
*
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Repeatable(CsvOverridesAttribute.List.class)
public @interface CsvOverridesAttribute {
/**
* 上書き対象のアノテーションのクラスタイプを指定します。
* @return 上書き対象のアノテーションのクラスタイプ
*/
Class extends Annotation> annotation();
/**
* 上書き対象のアノテーションの属性名を指定します。
* 省略した場合、付与した属性名が採用されます。
* @return 上書き対象のアノテーションの属性名。
*/
String name() default "";
/**
* 複数同じアノテーションが指定されている場合に、インデックス番号で特定するために指定します。
* @return 指定する場合は0から始めます。
*/
int index() default -1;
/**
* アノテーションを複数個指定する際の要素です。
*/
@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@interface List {
CsvOverridesAttribute[] value();
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy