| Modifier and Type | Field and Description |
|---|---|
| private final Pattern | |
| private final Class | |
| private final Class | |
| private final Pattern | |
| private final String | |
| private final String |
| Access | Constructor and Description |
|---|---|
| public | BeanFieldSplit(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 splitOn, String writeDelimiter, Class<? extends Collection<E>> collectionType, Class<?> elementType, String capture, String The format string used for packaging values to be written.
If format)null or empty, it is ignored.The only valid constructor. |
| Modifier and Type | Method and Description |
|---|---|
| protected Object | convert(String value)
Implements abstract com. This method manages the collection being created as well as splitting the data. |
| protected String | convertToWrite(Object value)
Overrides com. Manages converting a collection of values into a single string. |
| protected boolean | isFieldEmptyForWrite(Object value)
Overrides com. Checks that |
| capture | back to summary |
|---|---|
| private final Pattern capture | |
| collectionType | back to summary |
|---|---|
| private final Class<? extends Collection<E>> collectionType | |
| elementType | back to summary |
|---|---|
| private final Class<?> elementType | |
| splitOn | back to summary |
|---|---|
| private final Pattern splitOn | |
| writeDelimiter | back to summary |
|---|---|
| private final String writeDelimiter | |
| writeFormat | back to summary |
|---|---|
| private final String writeFormat | |
| BeanFieldSplit | back to summary |
|---|---|
| public BeanFieldSplit(Class<?> type, Field field, boolean required, Locale errorLocale, CsvConverter converter, String splitOn, String writeDelimiter, Class<? extends Collection<E>> collectionType, Class<?> elementType, String capture, String format) The only valid constructor.
| |
| convert | back to summary |
|---|---|
| protected Object convert(String value) throws CsvDataTypeMismatchException, CsvConstraintViolationException Implements abstract com. This method manages the collection being created as well as splitting the data. Once the data are split, they are sent to the converter for the actual conversion.
| |
| convertToWrite | back to summary |
|---|---|
| protected String convertToWrite(Object value) throws CsvDataTypeMismatchException Overrides com. Manages converting a collection of values into a single string. The conversion of each individual value is performed by the converter.
| |
| isFieldEmptyForWrite | back to summary |
|---|---|
| protected boolean isFieldEmptyForWrite(Object value) Overrides com. Checks that
| |