|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectcom.ricebridge.xmlman.RecordProviderSupport
Helper class for implementing the RecordProvider interface.
Use of this class will help ensure future compatibility with any XML Manager API changes.
Subclasses should implement the *Impl methods (for example, hasNextRecordImpl)
rather than the declared interface methods such as hasNextRecord.
See the RecordProvider interface documentation for a description of the calling sequence of the methods
in this class.
The Source Code of this Java class is available under a BSD-style license.
| Field Summary | |
protected String[] |
iFieldNames
Record specification field names, if specified in the RecordSpec object. |
| Constructor Summary | |
RecordProviderSupport()
|
|
| Method Summary | |
void |
endProcess()
Helper implementation of RecordProvider.endProcess. |
protected void |
endProcessImpl()
Implement this method to receive notification that the saving of XML data has ended. |
boolean |
hasNextRecord()
Helper implementation of RecordProvider.hasNextRecord. |
protected abstract boolean |
hasNextRecordImpl()
Return true if there are more data records to save. |
String[] |
nextRecord()
Helper implementation of RecordProvider.nextRecord. |
protected abstract String[] |
nextRecordImpl()
Indicates that the next data record is to be saved. |
void |
setFieldNames(String[] pFieldNames)
Helper implementation of RecordProvider.setFieldNames. |
protected void |
setFieldNamesImpl(String[] pFieldNames)
Implement this method to obtain the record specification field names, if available. |
void |
setXmlSpec(XmlSpec pXmlSpec)
Helper implementation of RecordProvider.setXmlSpec. |
protected void |
setXmlSpecImpl(XmlSpec pXmlSpec)
Implement this method to receive the current XmlSpec settings. |
void |
startProcess()
Helper implementation of RecordProvider.startProcess. |
protected void |
startProcessImpl()
Implement this method to receive notification that the saving 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 |
| Field Detail |
protected String[] iFieldNames
RecordSpec object.
NOTE: may be empty.
| Constructor Detail |
public RecordProviderSupport()
| Method Detail |
public void setXmlSpec(XmlSpec pXmlSpec)
RecordProvider.setXmlSpec.
Subclasses should implement setXmlSpecImpl.
setXmlSpec in interface RecordProviderpXmlSpec - XmlSpec objectpublic void setFieldNames(String[] pFieldNames)
RecordProvider.setFieldNames.
Subclasses should implement setFieldNamesImpl.
setFieldNames in interface RecordProviderpFieldNames - String[] of field namespublic void startProcess()
RecordProvider.startProcess.
Subclasses should implement startProcessImpl.
startProcess in interface RecordProviderpublic boolean hasNextRecord()
RecordProvider.hasNextRecord.
Sub classes should implement hasNextRecordImpl.
hasNextRecord in interface RecordProviderpublic String[] nextRecord()
RecordProvider.nextRecord.
Sub classes should implement nextRecordImpl.
nextRecord in interface RecordProviderpublic void endProcess()
RecordProvider.endProcess.
Subclasses should implement endProcessImpl.
endProcess in interface RecordProviderprotected void setXmlSpecImpl(XmlSpec pXmlSpec)
XmlSpec settings.
This method is optional for subclasses, as an empty implementation is provided here.
pXmlSpec - XML specificationsetXmlSpec(com.ricebridge.xmlman.XmlSpec),
RecordProvider.setXmlSpec(com.ricebridge.xmlman.XmlSpec)protected void setFieldNamesImpl(String[] pFieldNames)
The default implementation stores the field names in the iFieldNames member variable.
This method is optional for subclasses, as an implementation is provided here.
pFieldNames - record field namessetFieldNames(java.lang.String[]),
RecordProvider.setFieldNames(java.lang.String[])protected void startProcessImpl()
This method is optional for subclasses, as an empty implementation is provided here.
startProcess(),
RecordProvider.startProcess()protected abstract boolean hasNextRecordImpl()
true if there are more data records to save.
This method must be implemented by subclasses.
hasNextRecord(),
RecordProvider.hasNextRecord()protected abstract String[] nextRecordImpl()
This method must be implemented by subclasses.
nextRecord(),
RecordProvider.nextRecord()protected void endProcessImpl()
This method is optional for subclasses, as an empty implementation is provided here.
endProcess(),
RecordProvider.endProcess()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||