me.landmesser.simplecsv.annotation.CSVColumnName Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of simplecsv Show documentation
Show all versions of simplecsv Show documentation
Module that allows exporting Java beans into CSV format. Configuration
can be done via annotations. Under the hood, apache commons csv is used for writing
package me.landmesser.simplecsv.annotation;
import me.landmesser.simplecsv.ColumnNameStyle;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;
/**
* Sets the name of the field in the header.
*
* If not present, the field name is converted according to the
* {@link ColumnNameStyle}, which is {@link ColumnNameStyle#CAPITALIZED} by default.
*
* You can change the default by adding the annotation {@link CSVDefaultColumnName}
* at class level.
*/
@Target(ElementType.FIELD)
@Retention(RetentionPolicy.RUNTIME)
public @interface CSVColumnName {
String value();
}