jSyncManager

org.jSyncManager.API.Protocol.Util.StdApps
Class MemoDBXML

java.lang.Object
  |
  +--org.jdom.Document
        |
        +--org.jSyncManager.API.Protocol.Util.JSXMLDocument
              |
              +--org.jSyncManager.API.Protocol.Util.DLPRecordXML
                    |
                    +--org.jSyncManager.API.Protocol.Util.StdApps.MemoDBXML
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

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.

Version:
$Revision: 1.10 $
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

Field Summary
(package private)  MemoRecord record
           
static java.lang.String RECORDNAME
           
static java.lang.String XMLNAME
          org.jdom.Document document
 
Fields inherited from class org.jdom.Document
content, docType
 
Constructor Summary
MemoDBXML()
          Create new JSXMLDocument with default name and MemoDB DTD entity.
MemoDBXML(org.jdom.Document document)
          Create new JSXMLDocument with given JSXMLDocument.
MemoDBXML(java.io.InputStreamReader inputfile)
          Create new MemoDBScanner with InputStreamReader stream input.
MemoDBXML(MemoRecord rec)
          Create new JSXMLDocument with given MemoRecord.
 
Method Summary
 java.lang.String getDTD()
          Get the complete DTD for this database type.
 MemoRecord insertRecord(MemoRecord rec)
          Insert MemoRecord into XML Document.
 void readDocument(java.io.InputStreamReader inputfile)
          Read JSXMLDocument through InputStreamReader and parse into XML Document.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecordXML
insertRecord, readDocument
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.JSXMLDocument
readDocument, readDocument, readDocument, setDocument, setDTD, writeDocument
 
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
 

Field Detail

XMLNAME

public static java.lang.String XMLNAME
org.jdom.Document document

RECORDNAME

public static java.lang.String RECORDNAME

record

MemoRecord record
Constructor Detail

MemoDBXML

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

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.

MemoDBXML

public MemoDBXML(java.io.InputStreamReader inputfile)
          throws org.jdom.JDOMException,
                 java.io.IOException
Create new MemoDBScanner with InputStreamReader stream input.
Parameters:
inputfile - InputStreamReader
Throws:
org.jdom.JDOMException - JDOMException thrown.
java.io.IOException - IOException thrown.
Method Detail

insertRecord

public MemoRecord insertRecord(MemoRecord rec)
Insert MemoRecord into XML Document.
Parameters:
rec - MemoRecord input.
Returns:
Return the MemoRecord 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.Properties.line.separator

readDocument

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

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.