Class MasterDetailListProcessor

All Implemented Interfaces:
ConversionProcessor, Processor<ParsingContext>, RowProcessor

public abstract class MasterDetailListProcessor extends AbstractMasterDetailListProcessor<ParsingContext> implements RowProcessor
A convenience MasterDetailProcessor implementation for storing all MasterDetailRecord generated form the parsed input into a list. A typical use case of this class will be:

ObjectRowListProcessor detailProcessor = new ObjectRowListProcessor();
MasterDetailListProcessor masterRowProcessor = new MasterDetailListProcessor(detailProcessor) {
     protected boolean isMasterRecord(String[] row, ParsingContext context) {
         return "Total".equals(row[0]);
     }
};

parserSettings.setRowProcessor(masterRowProcessor);

List&lt;MasterDetailRecord&gt; rows = masterRowProcessor.getRecords();

Author:
Univocity Software Pty Ltd - parsers@univocity.com
See Also: