@Documented @Retention(value=RUNTIME) @Target(value=FIELD) public @interface CsvBindByName
Modifier and Type | Optional Element and Description |
---|---|
String |
column
If not specified, the name of the column must be identical to the name
of the field.
|
String |
locale
Defines the locale to be used for decoding the argument.
|
boolean |
required
Whether or not the annotated field is required to be present in every
data set of the input.
|
public abstract boolean required
public abstract String column
public abstract String locale
If not specified, the current default locale is used. The locale must be
one recognized by Locale
. Locale conversion is supported
for the following data types:
Byte
Float
Double
Integer
Long
Short
BigDecimal
BigInteger
CsvDate
The locale must be in a format accepted by
Locale.forLanguageTag(java.lang.String)
Caution must be exercized with the default locale, for the default locale for numerical types does not mean the locale of the running program, such as en-US or de-DE, but rather no locale. Numbers will be parsed more or less the way the Java compiler would parse them. That means, for instance, that thousands separators in long numbers are not permitted, even if the locale of the running program would accept them. When dealing with locale-sensitive data, it is always best to specify the locale explicitly.
Copyright © 2017. All rights reserved.