View Javadoc
1   package org.csveed.annotations;
2   
3   import java.lang.annotation.ElementType;
4   import java.lang.annotation.Retention;
5   import java.lang.annotation.RetentionPolicy;
6   import java.lang.annotation.Target;
7   
8   /**
9   * Makes sure that a specific Locale is used to convert numbers. If no Locale is required, no annotation
10  * needs to be set, because the right converter will be picked up automatically. If you still wish to
11  * apply a custom converter, use {@link CsvConverter}.
12  * @author Robert Bor
13  */
14  @Target(ElementType.FIELD)
15  @Retention(RetentionPolicy.RUNTIME)
16  public @interface CsvLocalizedNumber {
17  
18      /**
19      * Language used to construct Locale
20      * @return language
21      */
22      String language();
23  
24      /**
25      * Country used to construct Locale
26      * @return country
27      */
28      String country() default "";
29  
30      /**
31      * Variant used to construct Locale
32      * @return variant
33      */
34      String variant() default "";
35  }