com.ricebridge.xmlman
Class StandardBadRecordListener

java.lang.Object
  extended bycom.ricebridge.xmlman.BadRecordListenerSupport
      extended bycom.ricebridge.xmlman.CollectingBadRecordListener
          extended bycom.ricebridge.xmlman.StandardBadRecordListener
All Implemented Interfaces:
BadRecordListener

public class StandardBadRecordListener
extends CollectingBadRecordListener

Standard implementation of the BadRecordListener interface.

This implementation is used internally when no custom BadRecordListener is specified. It extends CollectingBadRecordListener so that the XmlManager.getBadRecords method functions correctly. BadRecords are simply stored in an ArrayList.

The Source Code of this Java class is available under a BSD-style license.


Field Summary
protected  ArrayList iBadRecords
          List of BadRecords.
 
Constructor Summary
StandardBadRecordListener()
           
 
Method Summary
protected  List getBadRecordsImpl()
          Provide list of BadRecords to CollectingBadRecordListener super class.
protected  void handleBadRecordImpl(BadRecord pBadRecord)
          Add BadRecord to list of BadRecords.
protected  void startProcessImpl()
          Clear old list of BadRecords.
 
Methods inherited from class com.ricebridge.xmlman.CollectingBadRecordListener
getBadRecords
 
Methods inherited from class com.ricebridge.xmlman.BadRecordListenerSupport
endProcess, endProcessImpl, handleBadRecord, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

iBadRecords

protected ArrayList iBadRecords
List of BadRecords.

Constructor Detail

StandardBadRecordListener

public StandardBadRecordListener()
Method Detail

startProcessImpl

protected void startProcessImpl()
Clear old list of BadRecords.

Overrides:
startProcessImpl in class BadRecordListenerSupport
See Also:
BadRecordListenerSupport.startProcess(), BadRecordListener.startProcess()

handleBadRecordImpl

protected void handleBadRecordImpl(BadRecord pBadRecord)
Add BadRecord to list of BadRecords.

Specified by:
handleBadRecordImpl in class BadRecordListenerSupport
Parameters:
pBadRecord - failed data record description
See Also:
BadRecordListenerSupport.handleBadRecord(BadRecord), BadRecordListener.handleBadRecord(BadRecord)

getBadRecordsImpl

protected List getBadRecordsImpl()
Provide list of BadRecords to CollectingBadRecordListener super class.

Specified by:
getBadRecordsImpl in class CollectingBadRecordListener


Copyright © 2004-2005 Ricebridge