public abstract class MasterDetailProcessor extends com.univocity.parsers.common.processor.core.AbstractMasterDetailProcessor<HtmlParsingContext>
A RowProcessor implementation for associating rows extracted from any implementation of HtmlParser into MasterDetailRecord instances.
For each row processed, a call to AbstractMasterDetailProcessor.isMasterRecord(String[], Context) will be made to identify whether or not it is a master row. The detail rows are automatically associated with the master record in an instance of MasterDetailRecord. When the master record is fully processed (i.e. MasterDetailRecord contains a master row and all associated detail rows), it is sent to the user for processing in AbstractMasterDetailProcessor.masterDetailRecordProcessed(MasterDetailRecord, Context).
Note this class extends ObjectRowProcessor and value conversions provided by Conversion instances are fully supported.
MasterDetailRecord,
RowPlacement,
HtmlParser,
ObjectRowListProcessor,
RowProcessor| Constructor and Description |
|---|
MasterDetailProcessor(ObjectRowListProcessor detailProcessor)
Creates a MasterDetailProcessor.
|
MasterDetailProcessor(com.univocity.parsers.common.processor.RowPlacement rowPlacement,
ObjectRowListProcessor detailProcessor)
Creates a MasterDetailProcessor
|
isMasterRecord, masterDetailRecordProcessed, processEnded, processStarted, rowProcessed, rowProcessedpublic MasterDetailProcessor(com.univocity.parsers.common.processor.RowPlacement rowPlacement,
ObjectRowListProcessor detailProcessor)
Creates a MasterDetailProcessor
rowPlacement - the location of the master row relative to the other rowsdetailProcessor - the processor that processes detail rows.public MasterDetailProcessor(ObjectRowListProcessor detailProcessor)
Creates a MasterDetailProcessor.
Default rowPlacement set to RowPlacement.TOP
detailProcessor - the processor that processes detail rows.Copyright © 2018 uniVocity Software Pty Ltd. All rights reserved.