| Modifier and Type | Field and Description |
|---|---|
| protected final Pattern | capture
The regular expression to be used for capturing part of the input for processing. |
| protected final String | writeFormat
The format string used for packaging values to be written. |
| Access | Constructor and Description |
|---|---|
| public | BeanFieldSingleValue(Class<?>
The type of the class in which this field is found. This is
the type as instantiated by opencsv, and not necessarily the
type in which the field is declared in the case of
inheritance. type, Field A field, boolean java. object.Whether or not this field is required in input required, Locale The errorLocale to use for error messages. errorLocale, CsvConverter The converter to be used to perform the actual data
conversion converter, String capture, String The format string used for packaging values to be written.
If format)null or empty, it is ignored.Simply calls the same constructor in the base class. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | convert(String value)
Implements abstract com. Passes the string to be converted to the converter. |
| protected String | convertToWrite(Object value)
Overrides com. Passes the object to be converted to the converter. |
| capture | back to summary |
|---|---|
| protected final Pattern capture The regular expression to be used for capturing part of the input for
processing. If there was no regular expression specified, this field
is | |
| writeFormat | back to summary |
|---|---|
| protected final String writeFormat The format string used for packaging values to be written. If
| |
| BeanFieldSingleValue | back to summary |
|---|---|
| public BeanFieldSingleValue(Class<?> type, Field field, boolean required, Locale errorLocale, CsvConverter converter, String capture, String format) Simply calls the same constructor in the base class.
| |
| convert | back to summary |
|---|---|
| protected Object convert(String value) throws CsvDataTypeMismatchException, CsvConstraintViolationException Implements abstract com. Passes the string to be converted to the converter.
| |
| convertToWrite | back to summary |
|---|---|
| protected String convertToWrite(Object value) throws CsvDataTypeMismatchException Overrides com. Passes the object to be converted to the converter.
| |