Uses of Interface
com.opencsv.bean.MappingStrategy
-
Packages that use MappingStrategy Package Description com.opencsv.bean A bean binding interface for use with opencsv.com.opencsv.bean.concurrent This package collects all classes necessary for the parallel processing of beans.com.opencsv.bean.util This is a package of utility classes for internal use. -
-
Uses of MappingStrategy in com.opencsv.bean
Classes in com.opencsv.bean that implement MappingStrategy Modifier and Type Class Description class
AbstractMappingStrategy<I,K extends java.lang.Comparable<K>,C extends ComplexFieldMapEntry<I,K,T>,T>
This class collects as many generally useful parts of the implementation of a mapping strategy as possible.class
ColumnPositionMappingStrategy<T>
Allows for the mapping of columns with their positions.class
FuzzyMappingStrategy<T>
A mapping strategy that tries to make the best match between header names and non-annotated member variables.class
HeaderColumnNameMappingStrategy<T>
Maps data to objects using the column names in the first row of the CSV file as reference.class
HeaderColumnNameTranslateMappingStrategy<T>
Expands onHeaderColumnNameMappingStrategy
by allowing the user to pass in a map of column names to bean names.class
HeaderNameBaseMappingStrategy<T>
This class serves as a location to collect code common to a mapping strategy that maps header names to member variables.Fields in com.opencsv.bean declared as MappingStrategy Modifier and Type Field Description private MappingStrategy<? extends T>
CsvToBean. mappingStrategy
The mapping strategy to be used by this CsvToBean.private MappingStrategy<? extends T>
CsvToBeanBuilder. mappingStrategy
private MappingStrategy<T>
StatefulBeanToCsv. mappingStrategy
private MappingStrategy<T>
StatefulBeanToCsvBuilder. mappingStrategy
Methods in com.opencsv.bean with parameters of type MappingStrategy Modifier and Type Method Description void
CsvToBean. setMappingStrategy(MappingStrategy<? extends T> mappingStrategy)
Sets the mapping strategy to be used by this bean.CsvToBeanBuilder<T>
CsvToBeanBuilder. withMappingStrategy(MappingStrategy<? extends T> mappingStrategy)
StatefulBeanToCsvBuilder<T>
StatefulBeanToCsvBuilder. withMappingStrategy(MappingStrategy<T> mappingStrategy)
Sets the mapping strategy for writing beans to a CSV destination.Constructors in com.opencsv.bean with parameters of type MappingStrategy Constructor Description StatefulBeanToCsv(char escapechar, java.lang.String lineEnd, MappingStrategy<T> mappingStrategy, char quotechar, char separator, CsvExceptionHandler exceptionHandler, java.io.Writer writer, boolean applyQuotesToAll, org.apache.commons.collections4.MultiValuedMap<java.lang.Class<?>,java.lang.reflect.Field> ignoredFields, java.lang.String profile)
Constructor used when supplying a Writer instead of a CsvWriter class.StatefulBeanToCsv(MappingStrategy<T> mappingStrategy, CsvExceptionHandler exceptionHandler, boolean applyQuotesToAll, ICSVWriter csvWriter, org.apache.commons.collections4.MultiValuedMap<java.lang.Class<?>,java.lang.reflect.Field> ignoredFields, java.lang.String profile)
Constructor used to allow building of aStatefulBeanToCsv
with a user-suppliedICSVWriter
class. -
Uses of MappingStrategy in com.opencsv.bean.concurrent
Fields in com.opencsv.bean.concurrent declared as MappingStrategy Modifier and Type Field Description private MappingStrategy<? extends T>
ProcessCsvLine. mapper
private MappingStrategy<? extends T>
CompleteFileReader. mappingStrategy
The mapping strategy in use.private MappingStrategy<T>
ProcessCsvBean. mappingStrategy
Methods in com.opencsv.bean.concurrent with parameters of type MappingStrategy Modifier and Type Method Description void
BeanExecutor. submitBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, CsvExceptionHandler exceptionHandler)
Submit one bean for conversion.void
LineExecutor. submitLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, CsvExceptionHandler exceptionHandler)
Submit one record for conversion to a bean.Constructors in com.opencsv.bean.concurrent with parameters of type MappingStrategy Constructor Description CompleteFileReader(CSVReader csvReader, CsvToBeanFilter filter, boolean ignoreEmptyLines, MappingStrategy<? extends T> mappingStrategy, CsvExceptionHandler exceptionHandler, java.util.List<BeanVerifier<T>> verifiers)
ProcessCsvBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, java.util.concurrent.BlockingQueue<OrderedObject<java.lang.String[]>> resultantLineQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, java.util.SortedSet<java.lang.Long> expectedRecords, CsvExceptionHandler exceptionHandler)
The only constructor for creating a line of CSV output out of a bean.ProcessCsvLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, java.util.List<BeanVerifier<T>> verifiers, java.lang.String[] line, java.util.concurrent.BlockingQueue<OrderedObject<T>> resultantBeanQueue, java.util.concurrent.BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, java.util.SortedSet<java.lang.Long> expectedRecords, CsvExceptionHandler exceptionHandler)
The only constructor for creating a bean out of a line of input. -
Uses of MappingStrategy in com.opencsv.bean.util
Methods in com.opencsv.bean.util that return MappingStrategy Modifier and Type Method Description static <T> MappingStrategy<T>
OpencsvUtils. determineMappingStrategy(java.lang.Class<? extends T> type, java.util.Locale errorLocale, java.lang.String profile)
Determines which mapping strategy is appropriate for this bean.
-