Class BeanProcessor<T>
- java.lang.Object
-
- com.univocity.parsers.common.DefaultConversionProcessor
-
- com.univocity.parsers.common.processor.core.BeanConversionProcessor<T>
-
- com.univocity.parsers.common.processor.core.AbstractBeanProcessor<T,ParsingContext>
-
- com.univocity.parsers.common.processor.BeanProcessor<T>
-
- Type Parameters:
T
- the annotated class type.
- All Implemented Interfaces:
ConversionProcessor
,Processor<ParsingContext>
,RowProcessor
public abstract class BeanProcessor<T> extends AbstractBeanProcessor<T,ParsingContext> implements RowProcessor
ARowProcessor
implementation for converting rows extracted from any implementation ofAbstractParser
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.- See Also:
AbstractParser
,RowProcessor
,AbstractBeanProcessor
-
-
Field Summary
-
Fields inherited from class com.univocity.parsers.common.processor.core.BeanConversionProcessor
initialized, methodFilter, parsedFields, transformer
-
Fields inherited from class com.univocity.parsers.common.DefaultConversionProcessor
conversions
-
-
Constructor Summary
Constructors Constructor Description BeanProcessor(java.lang.Class<T> beanType)
Creates a processor for java beans of a given type.
-
Method Summary
-
Methods inherited from class com.univocity.parsers.common.processor.core.AbstractBeanProcessor
beanProcessed, processEnded, processStarted, rowProcessed
-
Methods inherited from class com.univocity.parsers.common.processor.core.BeanConversionProcessor
addConversion, cloneConversions, createBean, getBeanClass, getColumnMapper, initialize, initialize, initialize, isStrictHeaderValidationEnabled, processField, reverseConversions, setColumnMapper, setStrictHeaderValidationEnabled
-
Methods inherited from class com.univocity.parsers.common.DefaultConversionProcessor
applyConversions, convertAll, convertFields, convertIndexes, convertType, handleConversionError, initializeConversions, reverseConversions, toDataProcessingException
-
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
-
BeanProcessor
public BeanProcessor(java.lang.Class<T> beanType)
Creates a processor for java beans of a given type.- Parameters:
beanType
- the class with its attributes mapped to fields of records parsed by anAbstractParser
or written by anAbstractWriter
.
-
-