public interface RowValidator<T>
CsvProcessor.setRowValidator(RowValidator)
that
validates the entity _after_ it has been parsed from the CSV line.Modifier and Type | Method and Description |
---|---|
void |
validateRow(String line,
int lineNumber,
T entity,
ParseError parseError)
Validate an entity that was parsed from the line at line-number.
|
void validateRow(String line, int lineNumber, T entity, ParseError parseError) throws ParseException
ParseError.setErrorType(com.j256.simplecsv.processor.ParseError.ErrorType)
(probably with
ParseError.ErrorType.INVALID_ENTITY
) and optimally a message. You can also throw a ParseException from this method
which will be caught to set the ParseError if necessary.ParseException
This documentation content is licensed by Gray Watson under the Creative Commons Attribution-Share Alike 3.0 License.