CsvColumn
which makes more send with get/set method support.@Retention(value=RUNTIME) @Target(value=FIELD) @Deprecated public @interface CsvField
Modifier and Type | Fields and Description |
---|---|
static String |
DEFAULT_VALUE
Deprecated.
Used internally to detect whether or not a value has been configured.
|
Modifier and Type | Optional Element and Description |
---|---|
String |
columnName
Deprecated.
This allows you to override and set a column name for the field.
|
Class<? extends Converter<?,?>> |
converterClass
Deprecated.
Sets the converter to use to convert this column if you don't want to use the default appropriate internal class.
|
long |
converterFlags
Deprecated.
Optional flags for the converter which adjust the output.
|
String |
defaultValue
Deprecated.
Set this to a default string for the column.
|
String |
format
Deprecated.
Sets the format for this column.
|
boolean |
mustBeSupplied
Deprecated.
Set to false if a column is optional and can be skipped in the input altogether.
|
boolean |
mustNotBeBlank
Deprecated.
Set to true if a value in the column cannot be empty when it is being read in and a parse error or exception will
be generated.
|
boolean |
trimInput
Deprecated.
Set to true if you want the column read from the line to be trimmed (using
String.trim() ) before it is
converted to Java. |
public static final String DEFAULT_VALUE
public abstract String columnName
public abstract boolean mustNotBeBlank
public abstract boolean trimInput
String.trim()
) before it is
converted to Java. This may not be applicable to all field types.public abstract String format
DecimalFormat
class is used to override for numbers.public abstract long converterFlags
@CsvField(converterFlags = XxxConverter.FLAG1 + XxxConverter.FLAG2) private Xxx dollarAmount;
public abstract Class<? extends Converter<?,?>> converterClass
CsvProcessor.registerConverter(Class, Converter)
. This converter class
must have a public no-arg constructor.public abstract String defaultValue
public abstract boolean mustBeSupplied
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.