org.jSyncManager.API.Protocol.Util.StdApps
Class DateBookDBXML
java.lang.Object
|
+--org.jdom.Document
|
+--org.jSyncManager.API.Protocol.Util.JSXMLDocument
|
+--org.jSyncManager.API.Protocol.Util.DLPRecordXML
|
+--org.jSyncManager.API.Protocol.Util.StdApps.DateBookDBXML
- All Implemented Interfaces:
- java.lang.Cloneable, java.io.Serializable
- public class DateBookDBXML
- extends DLPRecordXML
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.
- Version:
- $Revision: 1.12 $
- Author:
- David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/08 04:34:22 $.
- See Also:
JSXMLDocument
,
JSXMLElement
,
DLPRecordXML
, Serialized Form
Fields inherited from class org.jdom.Document |
content, docType |
Constructor Summary |
DateBookDBXML()
Create new DateBookXML Document with default name and DTD. |
DateBookDBXML(DateBookRecord rec)
Create new DateBookXML Document with given DateBookRecord. |
DateBookDBXML(org.jdom.Document document)
Create new DateBookXML Document with given org.jdom.Document. |
DateBookDBXML(java.io.InputStreamReader inputfile)
Create new DateBookXMLDocument from InputStreamReader stream. |
Methods inherited from class org.jdom.Document |
addContent, addContent, clone, detachRootElement, equals, getContent, getContent, getDocType, getRootElement, hashCode, hasRootElement, removeContent, removeContent, setContent, setDocType, setRootElement, toString |
Methods inherited from class java.lang.Object |
, finalize, getClass, notify, notifyAll, wait, wait, wait |
XMLNAME
public static java.lang.String XMLNAME
RECORDNAME
public static java.lang.String RECORDNAME
record
DateBookRecord record
dbentry
DateBookRecordEntry dbentry
DateBookDBXML
public DateBookDBXML()
- Create new DateBookXML Document with default name and DTD.
DateBookDBXML
public DateBookDBXML(DateBookRecord rec)
- Create new DateBookXML Document with given DateBookRecord.
- Parameters:
rec
- DateBookRecord to create XML record from
DateBookDBXML
public DateBookDBXML(org.jdom.Document document)
- Create new DateBookXML Document with given org.jdom.Document.
- Parameters:
document
- JDOM document to create DateBookXML document from.
DateBookDBXML
public DateBookDBXML(java.io.InputStreamReader inputfile)
throws org.jdom.JDOMException,
java.io.IOException
- Create new DateBookXMLDocument from InputStreamReader stream.
- Parameters:
inputfile
- InputStreamReader to parse into document.
insertRecord
public DateBookRecord insertRecord(DateBookRecord rec)
- Insert DateBookRecord into XML Document.
- Parameters:
rec
- DateBookRecord input.- Returns:
- Return the DateBookRecord for further processing.
getDTD
public java.lang.String getDTD()
- Get the complete DTD for this database type.
- Overrides:
getDTD
in class DLPRecordXML
- Returns:
- String containing complete DTD, delimited by System.getProperty("line.separator")
DBRecordEntry
public JSXMLElement DBRecordEntry(DateBookRecordEntry rec)
- Create an JSXMLElement instance from the given DateBookRecordEntry.
- Parameters:
rec
- DateBookRecordEntry to be parsed and returned as a JSXMLElement.- Returns:
- JSXMLElement Element created from DateBookRecordEntry.
readDocument
public void readDocument(java.io.InputStreamReader inputfile)
throws org.jdom.JDOMException,
java.io.IOException
- Read JSXMLDocument through InputStreamReader and parse into the JSCSVDocument.
- Overrides:
readDocument
in class JSXMLDocument
- Parameters:
inputfile
- InputStreamReader input.- Throws:
JDOMException
- JDOMException thrown.java.io.IOException
- IOException thrown.
readElement_jSyncManagerDatebookRecord
void readElement_jSyncManagerDatebookRecord(JSXMLElement element)
- Parse the DateBookRecord JSXMLElement element into Document
- Parameters:
element
- JSXMLElement to be parsed and inserted.
readElement_jSyncManagerDateBookRecordEntry
void readElement_jSyncManagerDateBookRecordEntry(JSXMLElement element)
- Parse JSXMLElement DateBookRecordEntry element into Document
- Parameters:
element
- JSXMLElement to be parsed and inserted.
Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.