|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.BadRecordListenerSupport
Helper class for implementing the BadRecordListener interface.
Use of this class will help ensure future compatibility with any XML Manager API changes.
Subclasses should implement the *Impl methods (for example, handleBadRecordImpl(BadRecord))
rather than the declared interface methods such as handleBadRecord(BadRecord).
See the BadRecordListener interface documentation for a description of the calling sequence of the methods
in this class.
Note: you should probably extend the abstract CollectingBadRecordListener class, instead of this class,
to ensure that the getBadRecords method continues to function correctly.
The Source Code of this Java class is available under a BSD-style license.
| Constructor Summary | |
BadRecordListenerSupport()
|
|
| Method Summary | |
void |
endProcess()
Helper implementation of BadRecordListener.endProcess. |
protected void |
endProcessImpl()
Implement this method to receive notification that the processing of XML data has finished. |
void |
handleBadRecord(BadRecord pBadRecord)
Helper implementation of BadRecordListener.handleBadRecord. |
protected abstract void |
handleBadRecordImpl(BadRecord pBadRecord)
Implement this method to receive each BadRecord as it occurs. |
void |
startProcess()
Helper implementation of BadRecordListener.startProcess. |
protected void |
startProcessImpl()
Implement this method to receive notification that the processing of XML data is about to start. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public BadRecordListenerSupport()
| Method Detail |
public void startProcess()
BadRecordListener.startProcess.
Subclasses should implement startProcessImpl().
startProcess in interface BadRecordListenerpublic void handleBadRecord(BadRecord pBadRecord)
BadRecordListener.handleBadRecord.
Subclasses should implement handleBadRecordImpl(BadRecord).
handleBadRecord in interface BadRecordListenerpBadRecord - BadRecord object describing the errorpublic void endProcess()
BadRecordListener.endProcess.
Subclasses should implement endProcessImpl().
endProcess in interface BadRecordListenerprotected void startProcessImpl()
This method is optional for subclasses, as an empty implementation is provided here.
startProcess(),
BadRecordListener.startProcess()protected abstract void handleBadRecordImpl(BadRecord pBadRecord)
BadRecord as it occurs.
This method must be implemented by subclasses.
handleBadRecord(BadRecord),
BadRecordListener.handleBadRecord(BadRecord)protected void endProcessImpl()
This method is optional for subclasses, as an empty implementation is provided here.
endProcess(),
BadRecordListener.endProcess()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||