T
- the annotated class type.public abstract class BeanProcessor<T> extends AbstractBeanProcessor<T,ParsingContext> implements RowProcessor
RowProcessor
implementation for converting rows extracted from any implementation of AbstractParser
into java objects.
The class type of the object must contain the annotations provided in com.univocity.parsers.annotations
.
For each row processed, a java bean instance of a given class will be created with its fields populated.
This instance will then be sent to the AbstractBeanProcessor.beanProcessed(Object, Context)
method, where the user can access it.
AbstractParser
,
RowProcessor
,
AbstractBeanProcessor
initialized, methodFilter, parsedFields, transformer
conversions
Constructor and Description |
---|
BeanProcessor(Class<T> beanType)
Creates a processor for java beans of a given type.
|
beanProcessed, processEnded, processStarted, rowProcessed
addConversion, cloneConversions, createBean, getBeanClass, getColumnMapper, initialize, initialize, initialize, isStrictHeaderValidationEnabled, processField, reverseConversions, setColumnMapper, setStrictHeaderValidationEnabled
applyConversions, convertAll, convertFields, convertIndexes, convertType, handleConversionError, initializeConversions, reverseConversions, toDataProcessingException
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
processEnded, processStarted, rowProcessed
public BeanProcessor(Class<T> beanType)
beanType
- the class with its attributes mapped to fields of records parsed by an AbstractParser
or written by an AbstractWriter
.Copyright © 2021 Univocity Software Pty Ltd. All rights reserved.