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

org.supercsv.ext.annotation.CsvDateConverter Maven / Gradle / Ivy

Go to download

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

There is a newer version: 2.3
Show newest version
/*
 * 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 ""; }





© 2015 - 2025 Weber Informatics LLC | Privacy Policy