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

com.github.timo_reymann.csv_parser.meta.CsvColumn Maven / Gradle / Ivy

package com.github.timo_reymann.csv_parser.meta;

import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;

/**
 * Map csv file column to property
 *
 * @author Timo Reymann
 * @since 20.12.17
 */
@Retention(RetentionPolicy.RUNTIME)
public @interface CsvColumn {
    /**
     * Index of csv column
     *
     * @return Index of csv column
     */
    int index() default -1;

    /**
     * Header name, used if the csv should have an header or should be read by header name
     *
     * @return Header name
     */
    String headerName() default "";

    /**
     * Format for column, used only if datatype is compatible with formatting e. g. {@link java.time.LocalDate}
     *
     * @return Format of column
     */
    String format() default "none";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy