T
- Type of the bean to be manipulatedpublic class ConvertSplitOnWhitespace<T> extends AbstractBeanField<T>
field, required
Constructor and Description |
---|
ConvertSplitOnWhitespace()
Silence code style checker by adding a useless constructor.
|
Modifier and Type | Method and Description |
---|---|
protected Object |
convert(String value)
Takes a string that is a list of substrings separated by whitespace and
returns a list of the substrings.
|
protected String |
convertToWrite(Object value)
This method takes the current value of the field in question in the bean
passed in and converts it to a string.
|
getField, isRequired, setField, setFieldValue, setRequired, write
public ConvertSplitOnWhitespace()
protected Object convert(String value) throws CsvDataTypeMismatchException, CsvRequiredFieldEmptyException, CsvConstraintViolationException
convert
in class AbstractBeanField<T>
value
- The string to be convertedCsvDataTypeMismatchException
- Is not thrown by this implementationCsvRequiredFieldEmptyException
- Is not thrown by this implementationCsvConstraintViolationException
- Is not thrown by this implementationprotected String convertToWrite(Object value) throws CsvDataTypeMismatchException
convertToWrite
in class AbstractBeanField<T>
value
- The contents of the field currently being processed from the
bean to be written. Can be null.CsvDataTypeMismatchException
- If the field is not a list of stringsAbstractBeanField.write(java.lang.Object)
Copyright © 2017. All rights reserved.