jSyncManager

org.jSyncManager.API.Protocol.Util
Class DLPRecordXML

java.lang.Object
  |
  +--org.jdom.Document
        |
        +--org.jSyncManager.API.Protocol.Util.JSXMLDocument
              |
              +--org.jSyncManager.API.Protocol.Util.DLPRecordXML
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable
Direct Known Subclasses:
AddressDBXML, DateBookDBXML, ExpenseDBXML, MailDBXML, MemoDBXML, ToDoListDBXML

public class DLPRecordXML
extends JSXMLDocument

A container for the XML representation of the DLPRecord.

Version:
$Revision: 1.10 $
Author:
David A. Bartmess <dingodave@edingo.net>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/08 04:34:21 $.
See Also:
JSXMLDocument, JSXMLElement, DLPRecord, Serialized Form

Field Summary
(package private)  DLPRecord record
           
static java.lang.String RECORDNAME
           
static java.lang.String XMLNAME
          JSXMLElement document
 
Fields inherited from class org.jdom.Document
content, docType
 
Constructor Summary
DLPRecordXML()
          Create new DLPRecordXML with default name.
DLPRecordXML(DLPRecord rec)
          Create new DLPRecordXML from given DLPRecord.
DLPRecordXML(java.io.InputStreamReader inputfile)
          Create new DLPRecordXML from given InputStreamReader stream input.
DLPRecordXML(java.lang.String name)
          Create new DLPRecordXML with given name.
 
Method Summary
 java.lang.String getDTD()
          Retrieve the DTD for the current element.
 void insertRecord(DLPRecord rec, JSXMLElement elem)
           
 void readDocument(JSXMLElement elem)
          Read document from an JSXMLElement and parse.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.JSXMLDocument
readDocument, 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
JSXMLElement document

RECORDNAME

public static java.lang.String RECORDNAME

record

DLPRecord record
Constructor Detail

DLPRecordXML

public DLPRecordXML()
Create new DLPRecordXML with default name.

DLPRecordXML

public DLPRecordXML(java.lang.String name)
Create new DLPRecordXML with given name.
Parameters:
name - String to be used as DLPRecordXML element name.

DLPRecordXML

public DLPRecordXML(DLPRecord rec)
             throws javax.xml.parsers.ParserConfigurationException,
                    org.xml.sax.SAXException
Create new DLPRecordXML from given DLPRecord.
Parameters:
rec - DLPRecord to be parsed into element.
Throws:
javax.xml.parsers.ParserConfigurationException -  
org.xml.sax.SAXException -  

DLPRecordXML

public DLPRecordXML(java.io.InputStreamReader inputfile)
             throws org.jdom.JDOMException,
                    java.io.IOException
Create new DLPRecordXML from given InputStreamReader stream input.
Parameters:
inputfile - InputStreamReader stream to be parsed into element.
Throws:
org.jdom.JDOMException -  
java.io.IOException -  
Method Detail

insertRecord

public void insertRecord(DLPRecord rec,
                         JSXMLElement elem)

getDTD

public java.lang.String getDTD()
Retrieve the DTD for the current element.
Overrides:
getDTD in class JSXMLDocument
Returns:
String DTD statement.

readDocument

public void readDocument(JSXMLElement elem)
                  throws java.io.IOException
Read document from an JSXMLElement and parse.
Parameters:
elem - JSXMLElement to parse document from.
Throws:
java.io.IOException -  

jSyncManager

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