This interface is used by BeanField to perform the actual data conversion.
Synchronization
All implementations of this interface must be thread-safe.
| Modifier and Type | Method and Description |
|---|---|
| public Object | Returns: Anjava. representing the input data converted
into the proper typeThe string from the selected field of the CSV file. If the
field is marked as required in the annotation, this value is guaranteed
not to be value)null, empty or blank according to
org.Method for converting from a string to the proper data type of the destination field. |
| public String | Returns: A string representation of the value of the field in question in the bean passed in, or an empty string ifvalue is
nullThe contents of the field currently being processed from the
bean to be written. Can be value)null if the field is not marked as
required.Method for converting from the data type of the destination field to a string. |
| public void | setErrorLocale(Locale
Locale for error messages. If errorLocale)null, the
default locale is used.Sets the locale for all error messages. |
| public void | |
| public void | |
| public void | setWriteLocale(String
The name of the locale for locale-sensitive data writeLocale)If not null or empty, specifies the locale used for converting locale-specific data types for writing. |
| convertToRead | back to summary |
|---|---|
| public Object convertToRead(String value) throws CsvDataTypeMismatchException, CsvConstraintViolationException Method for converting from a string to the proper data type of the destination field.
| |
| convertToWrite | back to summary |
|---|---|
| public String convertToWrite(Object value) throws CsvDataTypeMismatchException Method for converting from the data type of the destination field to a string.
| |
| setErrorLocale | back to summary |
|---|---|
| public void setErrorLocale(Locale errorLocale) Sets the locale for all error messages.
| |
| setLocale | back to summary |
|---|---|
| public void setLocale(String locale) If not null or empty, specifies the locale used for converting locale-specific data types for reading.
| |
| setType | back to summary |
|---|---|
| public void setType(Class<?> type) Sets the class of the type of the data being processed.
| |
| setWriteLocale | back to summary |
|---|---|
| public void setWriteLocale(String writeLocale) If not null or empty, specifies the locale used for converting locale-specific data types for writing.
| |