com.ricebridge.xmlman.test
Class CallSequenceTest.SequenceRecordListener

java.lang.Object
  extended bycom.ricebridge.xmlman.RecordListenerSupport
      extended bycom.ricebridge.xmlman.test.CallSequenceTest.SequenceRecordListener
All Implemented Interfaces:
RecordListener
Enclosing class:
CallSequenceTest

public class CallSequenceTest.SequenceRecordListener
extends RecordListenerSupport


Field Summary
 
Fields inherited from class com.ricebridge.xmlman.RecordListenerSupport
iFieldNames
 
Constructor Summary
CallSequenceTest.SequenceRecordListener(StringBuffer pSequence)
           
CallSequenceTest.SequenceRecordListener(StringBuffer pSequence, boolean pHasFailures)
           
CallSequenceTest.SequenceRecordListener(StringBuffer pSequence, CallSequenceTest.BadRecordContext pBRC)
           
CallSequenceTest.SequenceRecordListener(StringBuffer pSequence, CallSequenceTest.BadRecordContext pBRC, boolean pHasFailures)
           
 
Method Summary
protected  void endProcessImpl()
          Implement this method to receive notification that the saving of XML data has ended.
 BadRecord handleRecordImpl(String[] pRecord, long pRecordNumber)
          Implement this method to receive record data as it parsed.
protected  void setFieldNamesImpl(String[] pFieldNames)
          Implement this method to obtain the record specification field names, if available.
protected  void setXmlSpecImpl(XmlSpec pXmlSpec)
          Implement this method to receive the current XmlSpec settings.
protected  void startProcessImpl()
          Implement this method to receive notification that the saving of XML data is about to start.
 
Methods inherited from class com.ricebridge.xmlman.RecordListenerSupport
endProcess, handleRecord, setFieldNames, setXmlSpec, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CallSequenceTest.SequenceRecordListener

public CallSequenceTest.SequenceRecordListener(StringBuffer pSequence)

CallSequenceTest.SequenceRecordListener

public CallSequenceTest.SequenceRecordListener(StringBuffer pSequence,
                                               boolean pHasFailures)

CallSequenceTest.SequenceRecordListener

public CallSequenceTest.SequenceRecordListener(StringBuffer pSequence,
                                               CallSequenceTest.BadRecordContext pBRC)

CallSequenceTest.SequenceRecordListener

public CallSequenceTest.SequenceRecordListener(StringBuffer pSequence,
                                               CallSequenceTest.BadRecordContext pBRC,
                                               boolean pHasFailures)
Method Detail

setXmlSpecImpl

protected void setXmlSpecImpl(XmlSpec pXmlSpec)
Description copied from class: RecordListenerSupport
Implement this method to receive the current XmlSpec settings.

This method is optional for subclasses, as an empty implementation is provided here.

Overrides:
setXmlSpecImpl in class RecordListenerSupport
Parameters:
pXmlSpec - XML specification
See Also:
RecordListenerSupport.setXmlSpec(com.ricebridge.xmlman.XmlSpec), RecordListener.setXmlSpec(com.ricebridge.xmlman.XmlSpec)

setFieldNamesImpl

protected void setFieldNamesImpl(String[] pFieldNames)
Description copied from class: RecordListenerSupport
Implement this method to obtain the record specification field names, if available.

The default implementation stores the field names in the RecordListenerSupport.iFieldNames member variable. This method is optional for subclasses, as an implementation is provided here.

Overrides:
setFieldNamesImpl in class RecordListenerSupport
Parameters:
pFieldNames - data record field names
See Also:
RecordListenerSupport.setFieldNames(java.lang.String[]), RecordListener.setFieldNames(java.lang.String[])

startProcessImpl

protected void startProcessImpl()
Description copied from class: RecordListenerSupport
Implement this method to receive notification that the saving of XML data is about to start.

This method is optional for subclasses, as an empty implementation is provided here.

Overrides:
startProcessImpl in class RecordListenerSupport
See Also:
RecordListenerSupport.startProcess(), RecordListener.startProcess()

endProcessImpl

protected void endProcessImpl()
Description copied from class: RecordListenerSupport
Implement this method to receive notification that the saving of XML data has ended.

This method is optional for subclasses, as an empty implementation is provided here.

Overrides:
endProcessImpl in class RecordListenerSupport
See Also:
RecordListenerSupport.endProcess(), RecordListener.endProcess()

handleRecordImpl

public BadRecord handleRecordImpl(String[] pRecord,
                                  long pRecordNumber)
Description copied from class: RecordListenerSupport
Implement this method to receive record data as it parsed.

The record number is specific to each RecordSpec. This method must be implemented by subclasses.

Specified by:
handleRecordImpl in class RecordListenerSupport
Parameters:
pRecord - record data as a String[]
pRecordNumber - current count of records
See Also:
RecordListenerSupport.handleRecord(java.lang.String[], long), RecordListener.handleRecord(java.lang.String[], long)


Copyright © 2004-2005 Ricebridge