com.ricebridge.xmlman
Class CollectingBadRecordListener

java.lang.Object
  extended bycom.ricebridge.xmlman.BadRecordListenerSupport
      extended bycom.ricebridge.xmlman.CollectingBadRecordListener
All Implemented Interfaces:
BadRecordListener
Direct Known Subclasses:
BadRecordsTest.SimpleBadRecordListener, CallSequenceTest.SequenceBadRecordListener, StandardBadRecordListener

public abstract class CollectingBadRecordListener
extends BadRecordListenerSupport

Helper class that enables the functionality of the getBadRecords method.

Extend this class if you intend to store BadRecords, so that they can then be accessed by XmlManager. See the StandardBadRecordListener for an implementation example.

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


Constructor Summary
CollectingBadRecordListener()
           
 
Method Summary
 List getBadRecords()
          Get the list of stored BadRecords.
protected abstract  List getBadRecordsImpl()
          Get the stored BadRecords from the underlying implementation.
 
Methods inherited from class com.ricebridge.xmlman.BadRecordListenerSupport
endProcess, endProcessImpl, handleBadRecord, handleBadRecordImpl, startProcess, startProcessImpl
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CollectingBadRecordListener

public CollectingBadRecordListener()
Method Detail

getBadRecords

public List getBadRecords()
Get the list of stored BadRecords.


getBadRecordsImpl

protected abstract List getBadRecordsImpl()
Get the stored BadRecords from the underlying implementation.



Copyright © 2004-2005 Ricebridge