org.jSyncManager.API.Conduit.Tools

Class DLPRecordXML

Known Direct Subclasses:
AddressDBXML, DateBookDBXML, ExpenseDBXML, MailDBXML, MemoDBXML, ToDoListDBXML

public class DLPRecordXML
extends JSXMLDocument

A container for the XML representation of the DLPRecord.
See Also:
JSXMLDocument, JSXMLElement, DLPRecord

Field Summary

static String
RECORDNAME
static String
XMLNAME
JSXMLElement document

Constructor Summary

DLPRecordXML()
Create new DLPRecordXML with default name.
DLPRecordXML(InputStreamReader inputfile)
Create new DLPRecordXML from given InputStreamReader stream input.
DLPRecordXML(String name)
Create new DLPRecordXML with given name.
DLPRecordXML(DLPRecord rec)
Create new DLPRecordXML from given DLPRecord.

Method Summary

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.Conduit.Tools.JSXMLDocument

getDTD, readDocument, readDocument, readDocument, readDocument, setDTD, setDocument, writeDocument

Field Details

RECORDNAME

public static String RECORDNAME

XMLNAME

public static String XMLNAME
JSXMLElement document

Constructor Details

DLPRecordXML

public DLPRecordXML()
Create new DLPRecordXML with default name.

DLPRecordXML

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

DLPRecordXML

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

DLPRecordXML

public DLPRecordXML(DLPRecord rec)
Create new DLPRecordXML from given DLPRecord.
Parameters:
rec - DLPRecord to be parsed into element.

Method Details

getDTD

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

insertRecord

public void insertRecord(DLPRecord rec,
                         JSXMLElement elem)

readDocument

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