com.univocity.parsers.common.processor
Class MultiBeanRowProcessor

java.lang.Object
  extended by com.univocity.parsers.common.processor.core.AbstractMultiBeanProcessor<C>
      extended by com.univocity.parsers.common.processor.core.AbstractMultiBeanRowProcessor<ParsingContext>
          extended by com.univocity.parsers.common.processor.MultiBeanRowProcessor
All Implemented Interfaces:
ConversionProcessor, Processor<ParsingContext>, RowProcessor

public abstract class MultiBeanRowProcessor
extends AbstractMultiBeanRowProcessor<ParsingContext>
implements RowProcessor

A RowProcessor implementation for converting rows extracted from any implementation of AbstractParser into java objects.

The class types passed to the constructor of this class must contain the annotations provided in com.univocity.parsers.annotations.

For each row processed, one or more java bean instances of any given class will be created with their fields populated.

Once all beans are populated from an individual input record, they will be sent to through the AbstractMultiBeanRowProcessor.rowProcessed(Map, Context) method, where the user can access all beans parsed for that row.

Author:
uniVocity Software Pty Ltd - parsers@univocity.com
See Also:
AbstractParser, RowProcessor, BeanProcessor, MultiBeanProcessor

Constructor Summary
MultiBeanRowProcessor(Class... beanTypes)
          Creates a processor for java beans of multiple types
 
Method Summary
 
Methods inherited from class com.univocity.parsers.common.processor.core.AbstractMultiBeanRowProcessor
beanProcessed, processEnded, processStarted, rowProcessed
 
Methods inherited from class com.univocity.parsers.common.processor.core.AbstractMultiBeanProcessor
convertAll, convertFields, convertIndexes, convertType, getProcessorOfType, rowProcessed
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface com.univocity.parsers.common.processor.RowProcessor
processEnded, processStarted, rowProcessed
 

Constructor Detail

MultiBeanRowProcessor

public MultiBeanRowProcessor(Class... beanTypes)
Creates a processor for java beans of multiple types

Parameters:
beanTypes - the classes with their attributes mapped to fields of records parsed by an AbstractParser or written by an AbstractWriter.


Copyright © 2016 uniVocity Software Pty Ltd. All rights reserved.