org.jSyncManager.API.Conduit.Tools

Class AddressDBXML


public class AddressDBXML
extends DLPRecordXML

This is a synchronization JConduit for ax XML document from the AddressDB 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
AddressRecord type name.
static String
XMLNAME
XML Database name.

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

RECORDNAME, XMLNAME

Constructor Summary

AddressDBXML()
Create new JSXMLDocument with default name and AddressDB DTD entity.
AddressDBXML(InputStreamReader inputfile)
Create new AddressDBScanner with InputStreamReader stream input.
AddressDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
AddressDBXML(AddressRecord rec)
Create new JSXMLDocument with given AddressRecord.

Method Summary

String
getDTD()
Get the complete DTD for this database type.
AddressRecord
insertRecord(AddressRecord rec)
Insert AddressRecord 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
AddressRecord type name.

XMLNAME

public static String XMLNAME
XML Database name.

Constructor Details

AddressDBXML

public AddressDBXML()
Create new JSXMLDocument with default name and AddressDB DTD entity.

AddressDBXML

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

AddressDBXML

public AddressDBXML(JSXMLDocument document)
Create new JSXMLDocument with given JSXMLDocument.
Parameters:
document - The JSXMLDocument to be read and input.

AddressDBXML

public AddressDBXML(AddressRecord rec)
Create new JSXMLDocument with given AddressRecord.
Parameters:
rec - AddressRecord

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 AddressRecord insertRecord(AddressRecord rec)
Insert AddressRecord into XML Document.
Parameters:
rec - AddressRecord input.
Returns:
Return the AddressRecord 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.