1 /* 2 * CSVeed (https://github.com/42BV/CSVeed) 3 * 4 * Copyright 2013-2023 CSVeed. 5 * 6 * All rights reserved. This program and the accompanying materials 7 * are made available under the terms of The Apache Software License, 8 * Version 2.0 which accompanies this distribution, and is available at 9 * https://www.apache.org/licenses/LICENSE-2.0.txt 10 */ 11 package org.csveed.annotations; 12 13 import java.lang.annotation.ElementType; 14 import java.lang.annotation.Retention; 15 import java.lang.annotation.RetentionPolicy; 16 import java.lang.annotation.Target; 17 18 /** 19 * Makes sure that a specific Locale is used to convert numbers. If no Locale is required, no annotation needs to be 20 * set, because the right converter will be picked up automatically. If you still wish to apply a custom converter, use 21 * {@link CsvConverter}. 22 */ 23 @Target(ElementType.FIELD) 24 @Retention(RetentionPolicy.RUNTIME) 25 public @interface CsvLocalizedNumber { 26 27 /** 28 * Language used to construct Locale. 29 * 30 * @return language 31 */ 32 String language(); 33 34 /** 35 * Country used to construct Locale. 36 * 37 * @return country 38 */ 39 String country() default ""; 40 41 /** 42 * Variant used to construct Locale. 43 * 44 * @return variant 45 */ 46 String variant() default ""; 47 }