org.jSyncManager.API.Conduit.Tools
Class DateBookDBXML
public class DateBookDBXML
This is a synchronization JConduit for a XML document from the DateBookDB database.
Each element in the records will be a double-quoted String, escaped if necessary.
DateBookDBXML()- Create new DateBookXML Document with default name and DTD.
|
DateBookDBXML(InputStreamReader inputfile)- Create new DateBookXMLDocument from InputStreamReader stream.
|
DateBookDBXML(DateBookRecord rec)- Create new DateBookXML Document with given DateBookRecord.
|
DateBookDBXML(org.jdom.Document document)- Create new DateBookXML Document with given org.jdom.Document.
|
RECORDNAME
public static String RECORDNAME
XMLNAME
public static String XMLNAME
DateBookDBXML
public DateBookDBXML()
Create new DateBookXML Document with default name and DTD.
DateBookDBXML
public DateBookDBXML(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionCreate new DateBookXMLDocument from InputStreamReader stream.
inputfile - InputStreamReader to parse into document.
DateBookDBXML
public DateBookDBXML(DateBookRecord rec)
Create new DateBookXML Document with given DateBookRecord.
rec - DateBookRecord to create XML record from
DateBookDBXML
public DateBookDBXML(org.jdom.Document document)
Create new DateBookXML Document with given org.jdom.Document.
document - JDOM document to create DateBookXML document from.
DBRecordEntry
public JSXMLElement DBRecordEntry(DateBookRecordEntry rec)
Create an JSXMLElement instance from the given DateBookRecordEntry.
rec - DateBookRecordEntry to be parsed and returned as a JSXMLElement.
- JSXMLElement Element created from DateBookRecordEntry.
getDTD
public String getDTD()
Get the complete DTD for this database type.
- getDTD in interface DLPRecordXML
- String containing complete DTD, delimited by System.getProperty("line.separator")
insertRecord
public DateBookRecord insertRecord(DateBookRecord rec)
Insert DateBookRecord into XML Document.
rec - DateBookRecord input.
- Return the DateBookRecord for further processing.
readDocument
public void readDocument(InputStreamReader inputfile)
throws org.jdom.JDOMException,
IOExceptionRead JSXMLDocument through InputStreamReader and parse into the JSCSVDocument.
- readDocument in interface JSXMLDocument
inputfile - InputStreamReader input.