Uses of Interface
com.opencsv.bean.MappingStrategy
Packages that use MappingStrategy
Package
Description
A bean binding interface for use with opencsv.
This package collects all classes necessary for the parallel processing of
beans.
This is a package of utility classes for internal use.
-
Uses of MappingStrategy in com.opencsv.bean
Classes in com.opencsv.bean that implement MappingStrategyModifier and TypeClassDescriptionclassAbstractMappingStrategy<I,K extends 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.classAllows for the mapping of columns with their positions.classA mapping strategy that tries to make the best match between header names and non-annotated member variables.classMaps data to objects using the column names in the first row of the CSV file as reference.classExpands onHeaderColumnNameMappingStrategyby allowing the user to pass in a map of column names to bean names.classThis 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 MappingStrategyModifier and TypeFieldDescriptionprivate MappingStrategy<? extends T> CsvToBean.mappingStrategyThe mapping strategy to be used by this CsvToBean.private MappingStrategy<? extends T> CsvToBeanBuilder.mappingStrategyprivate MappingStrategy<T> StatefulBeanToCsv.mappingStrategyprivate MappingStrategy<T> StatefulBeanToCsvBuilder.mappingStrategyMethods in com.opencsv.bean with parameters of type MappingStrategyModifier and TypeMethodDescriptionvoidCsvToBean.setMappingStrategy(MappingStrategy<? extends T> mappingStrategy) Sets the mapping strategy to be used by this bean.CsvToBeanBuilder.withMappingStrategy(MappingStrategy<? extends T> mappingStrategy) 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 MappingStrategyModifierConstructorDescription(package private)StatefulBeanToCsv(char escapechar, String lineEnd, MappingStrategy<T> mappingStrategy, char quotechar, char separator, CsvExceptionHandler exceptionHandler, Writer writer, boolean applyQuotesToAll, org.apache.commons.collections4.MultiValuedMap<Class<?>, Field> ignoredFields, 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<Class<?>, Field> ignoredFields, String profile) Constructor used to allow building of aStatefulBeanToCsvwith a user-suppliedICSVWriterclass. -
Uses of MappingStrategy in com.opencsv.bean.concurrent
Fields in com.opencsv.bean.concurrent declared as MappingStrategyModifier and TypeFieldDescriptionprivate final MappingStrategy<? extends T> ProcessCsvLine.mapperprivate final MappingStrategy<? extends T> CompleteFileReader.mappingStrategyThe mapping strategy in use.private final MappingStrategy<T> ProcessCsvBean.mappingStrategyMethods in com.opencsv.bean.concurrent with parameters of type MappingStrategyModifier and TypeMethodDescriptionvoidBeanExecutor.submitBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, CsvExceptionHandler exceptionHandler) Submit one bean for conversion.voidLineExecutor.submitLine(long lineNumber, MappingStrategy<? extends T> mapper, CsvToBeanFilter filter, List<BeanVerifier<T>> verifiers, String[] line, CsvExceptionHandler exceptionHandler) Submit one record for conversion to a bean.Constructors in com.opencsv.bean.concurrent with parameters of type MappingStrategyModifierConstructorDescriptionCompleteFileReader(CSVReader csvReader, CsvToBeanFilter filter, boolean ignoreEmptyLines, MappingStrategy<? extends T> mappingStrategy, CsvExceptionHandler exceptionHandler, List<BeanVerifier<T>> verifiers) ProcessCsvBean(long lineNumber, MappingStrategy<T> mappingStrategy, T bean, BlockingQueue<OrderedObject<String[]>> resultantLineQueue, BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, SortedSet<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, List<BeanVerifier<T>> verifiers, String[] line, BlockingQueue<OrderedObject<T>> resultantBeanQueue, BlockingQueue<OrderedObject<CsvException>> thrownExceptionsQueue, SortedSet<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 MappingStrategyModifier and TypeMethodDescriptionstatic <T> MappingStrategy<T> OpencsvUtils.determineMappingStrategy(Class<? extends T> type, Locale errorLocale, String profile) Determines which mapping strategy is appropriate for this bean.