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
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. |
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
- JSXMLElement document
RECORDNAME
public static java.lang.String RECORDNAME
record
DLPRecord record
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
-
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
-
Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.