![JAR search and dependency download from the Maven repository](/logo.png)
org.supercsv.ext.annotation.CsvDateConverter Maven / Gradle / Ivy
Show all versions of super-csv-annotation Show documentation
/*
* CsvDateConverter.java
* created in 2013/03/05
*
* (C) Copyright 2003-2013 GreenDay Project. All rights reserved.
*/
package org.supercsv.ext.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 java.util.Locale;
/**
* Date formmating annotation.
*
* @author T.TSUCHIE
*
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CsvDateConverter {
/**
* format pattern
* default 'yyyy-MM-dd HH:mm:ss'
* @return
*/
String pattern() default "yyyy-MM-dd HH:mm:ss";
/**
* parsing date, lenient.
*
default : false
* @return
*/
boolean lenient() default true;
/**
* timezone id
* @return
*/
String timezone() default "";
/**
* formatting {@link Locale}.
* ex. 'ja', 'ja_JP'
* @since 1.2
* @return
*/
String locale() default "";
/**
* formatting {@link Locale} for laugage code.
*
example. ja, en
*
use {@link #locale()}
* @return
*/
@Deprecated
String language() default "";
/**
* formatting {@link Locale} for country code.
*
example. JP, US
*
use {@link #locale()}
* @return
*/
@Deprecated
String country() default "";
/**
* start date
*
set CellProcessor for 'FutureDate'
* @return
*/
String min() default "";
/**
* end date
*
set CellProcessor for 'PastDate'
* @return
*/
String max() default "";
}