org.supercsv.ext.annotation.CsvNumberConverter Maven / Gradle / Ivy
Show all versions of super-csv-annotation Show documentation
/*
* CsvNumberConverter.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.Currency;
import java.util.Locale;
/**
* Number formmating annotation.
*
* @author T.TSUCHIE
*
*/
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Documented
public @interface CsvNumberConverter {
/**
* format pattern
* set for CellProcessor 'FormatLocaleNumber'
* @return
*/
String pattern() default "";
/**
* number formatting lenient.
*
false : format exactly
* @return
*/
boolean lenient() default false;
/**
* formatting {@link Currency} Code(ISO 4217 Code)
* @return
*/
String currency() 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 "";
/**
*
set for CellProcessro 'Min'
* @return
*/
String min() default "";
/**
*
*
set for CellProcessro 'Max'
* @return
*/
String max() default "";
}