com.ricebridge.xmlman.test
Class LoadRecordListenerTest.SimpleRecordListener

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

public static class LoadRecordListenerTest.SimpleRecordListener
extends RecordListenerSupport


Field Summary
 
Fields inherited from class com.ricebridge.xmlman.RecordListenerSupport
iFieldNames
 
Constructor Summary
LoadRecordListenerTest.SimpleRecordListener()
           
 
Method Summary
 String getData()
           
protected  BadRecord handleRecordImpl(String[] pRecord, long pRecordNumber)
          Implement this method to receive record data as it parsed.
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, endProcessImpl, handleRecord, setFieldNames, setFieldNamesImpl, setXmlSpec, setXmlSpecImpl, startProcess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LoadRecordListenerTest.SimpleRecordListener

public LoadRecordListenerTest.SimpleRecordListener()
Method Detail

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()

handleRecordImpl

protected 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)

getData

public String getData()


Copyright © 2004-2005 Ricebridge