org.jSyncManager.API.Conduit.Tools

Class MemoDBXML


public class MemoDBXML
extends DLPRecordXML

This is a synchronization JConduit for ax XML document from the MemoDB database. Each element in the record will be a double-quoted String, escaped if necessary.
See Also:
JSXMLDocument, JSXMLElement, DLPRecordXML

Field Summary

static String
RECORDNAME
static String
XMLNAME
org.jdom.Document document

Fields inherited from class org.jSyncManager.API.Conduit.Tools.DLPRecordXML

RECORDNAME, XMLNAME

Constructor Summary

MemoDBXML()
Create new JSXMLDocument with default name and MemoDB DTD entity.
MemoDBXML(InputStreamReader inputfile)
Create new MemoDBScanner with InputStreamReader stream input.
MemoDBXML(MemoRecord rec)
Create new JSXMLDocument with given MemoRecord.
MemoDBXML(org.jdom.Document document)
Create new JSXMLDocument with given JSXMLDocument.

Method Summary

String
getDTD()
Get the complete DTD for this database type.
MemoRecord
insertRecord(MemoRecord rec)
Insert MemoRecord into XML Document.
void
readDocument(InputStreamReader inputfile)
Read JSXMLDocument through InputStreamReader and parse into XML Document.

Methods inherited from class org.jSyncManager.API.Conduit.Tools.DLPRecordXML

getDTD, insertRecord, readDocument

Methods inherited from class org.jSyncManager.API.Conduit.Tools.JSXMLDocument

getDTD, readDocument, readDocument, readDocument, readDocument, setDTD, setDocument, writeDocument

Field Details

RECORDNAME

public static String RECORDNAME

XMLNAME

public static String XMLNAME
org.jdom.Document document

Constructor Details

MemoDBXML

public MemoDBXML()
Create new JSXMLDocument with default name and MemoDB DTD entity.

MemoDBXML

public MemoDBXML(InputStreamReader inputfile)
            throws org.jdom.JDOMException,
                   IOException
Create new MemoDBScanner with InputStreamReader stream input.
Parameters:
inputfile - InputStreamReader

MemoDBXML

public MemoDBXML(MemoRecord rec)
Create new JSXMLDocument with given MemoRecord.
Parameters:
rec - MemoRecord

MemoDBXML

public MemoDBXML(org.jdom.Document document)
Create new JSXMLDocument with given JSXMLDocument.
Parameters:
document - The JSXMLDocument to be read and input.

Method Details

getDTD

public String getDTD()
Get the complete DTD for this database type.
Overrides:
getDTD in interface DLPRecordXML
Returns:
String containing complete DTD, delimited by System.Properties.line.separator

insertRecord

public MemoRecord insertRecord(MemoRecord rec)
Insert MemoRecord into XML Document.
Parameters:
rec - MemoRecord input.
Returns:
Return the MemoRecord for further processing.

readDocument

public void readDocument(InputStreamReader inputfile)
            throws org.jdom.JDOMException,
                   IOException
Read JSXMLDocument through InputStreamReader and parse into XML Document.
Overrides:
readDocument in interface JSXMLDocument
Parameters:
inputfile - InputStreamReader input.