Uses of Class
com.opencsv.exceptions.CsvValidationException
-
Packages that use CsvValidationException Package Description com.opencsv A very simple CSV parser for Java released under a commercial-friendly license.com.opencsv.bean A bean binding interface for use with opencsv.com.opencsv.bean.validators com.opencsv.validators -
-
Uses of CsvValidationException in com.opencsv
Methods in com.opencsv that throw CsvValidationException Modifier and Type Method Description java.util.Map<java.lang.String,java.lang.String>
CSVReaderHeaderAware. readMap()
Reads the next line and returns a map of header values and data values.java.lang.String[]
CSVReader. readNext()
Reads the next line from the buffer and converts to a string array.java.lang.String[]
CSVReaderHeaderAware. readNext(java.lang.String... headerNames)
Retrieves a specific data element from a line based on the value of the header.protected java.lang.String[]
CSVReader. validateResult(java.lang.String[] result, long lineStartOfRow, boolean useRowValidators)
Increments the number of records read if the result passed in is not null.Constructors in com.opencsv that throw CsvValidationException Constructor Description CSVIterator(CSVReader reader)
-
Uses of CsvValidationException in com.opencsv.bean
Methods in com.opencsv.bean that throw CsvValidationException Modifier and Type Method Description T
AbstractMappingStrategy. populateNewBean(java.lang.String[] line)
T
MappingStrategy. populateNewBean(java.lang.String[] line)
Takes a line of input from a CSV file and creates a bean out of it.void
AbstractBeanField. setFieldValue(java.lang.Object bean, java.lang.String value, java.lang.String header)
protected void
AbstractMappingStrategy. setFieldValue(java.util.Map<java.lang.Class<?>,java.lang.Object> beanTree, java.lang.String value, int column)
Populates the field corresponding to the column position indicated of the bean passed in according to the rules of the mapping strategy.void
BeanField. setFieldValue(java.lang.Object bean, java.lang.String value, java.lang.String header)
Populates the selected field of the bean. -
Uses of CsvValidationException in com.opencsv.bean.validators
Methods in com.opencsv.bean.validators that throw CsvValidationException Modifier and Type Method Description void
MustMatchRegexExpression. validate(java.lang.String value, BeanField field)
void
StringValidator. validate(java.lang.String value, BeanField field)
Performs the validation check on the string and throws an exception if invalid. -
Uses of CsvValidationException in com.opencsv.validators
Methods in com.opencsv.validators that throw CsvValidationException Modifier and Type Method Description void
LineValidator. validate(java.lang.String line)
Performs the validation check on the string and throws an exception if invalid.void
LineValidatorAggregator. validate(java.lang.String line)
Runs all LineValdators validate commands and if the string is invalid then it combines all the validation error messages in a single CsvValidationException.void
RowFunctionValidator. validate(java.lang.String[] row)
void
RowMustHaveSameNumberOfColumnsAsFirstRowValidator. validate(java.lang.String[] row)
void
RowValidator. validate(java.lang.String[] row)
Performs the validation check on the row (an array ofString
s) and throws an exception if invalid.void
RowValidatorAggregator. validate(java.lang.String[] row)
Runs all RowValdators validate commands and if the string is invalid then it combines all the validation error messages in a single CsvValidationException.
-