|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.RecordListenerSupport
com.ricebridge.xmlman.StringListRecordListener
Implementation of RecordListener that stores data records as
a List of Lists ofStrings.
This class is used to implement the loadAsLists(*,RecordSpec)
methods in XmlManager.
It simply stores the data records as Strings in an ArrayList, and stores each ArrayList in
ArrayList of records.
StringListRecordListener is designed to be subclassed. You can change the default implementation by calling the
setStringListRecordListenerClass method of
XmlManagerStore, and providing a subclass of StringListRecordListener.
XmlManagerStore can be accessed using XmlManager.getXmlManagerStore().
The Source Code of this Java class is available under a BSD-style license.
| Field Summary | |
protected ArrayList |
iRecords
List of Lists of Strings containing record data. |
| Fields inherited from class com.ricebridge.xmlman.RecordListenerSupport |
iFieldNames |
| Constructor Summary | |
StringListRecordListener()
Constructor with no parameters required for creating new objects in XmlManagerStore.newStringListRecordListener. |
|
| Method Summary | |
List |
getRecords()
Get the stored list of data records. |
protected BadRecord |
handleRecordImpl(String[] pRecord,
long pRecordNumber)
Store the data record String[]. |
String |
toString()
Return a textual description suitable for debugging. |
| Methods inherited from class com.ricebridge.xmlman.RecordListenerSupport |
endProcess, endProcessImpl, handleRecord, setFieldNames, setFieldNamesImpl, setXmlSpec, setXmlSpecImpl, startProcess, startProcessImpl |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
protected ArrayList iRecords
List of Lists of Strings containing record data.
| Constructor Detail |
public StringListRecordListener()
XmlManagerStore.newStringListRecordListener.
| Method Detail |
public List getRecords()
List of Lists of Stringspublic String toString()
protected BadRecord handleRecordImpl(String[] pRecord,
long pRecordNumber)
String[].
handleRecordImpl in class RecordListenerSupportpRecord - record data as a String[]pRecordNumber - current count of recordsRecordListener.handleRecord(java.lang.String[], long)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||