org.jSyncManager.API.Conduit.Tools

Class JSXMLDate


public class JSXMLDate
extends JSXMLElement

A convenience class for storing and retrieving a Calendar date element.

Field Summary

static String
XMLNAME
Default XML Name for this element.

Constructor Summary

JSXMLDate()
Create a default new AddressDBScanner with the default name and current date.
JSXMLDate(String name)
Create new AddressDBScanner with the given name and current date as default.
JSXMLDate(String name, Calendar rec)
Create new AddressDBScanner with given name and Calendar date value.

Method Summary

String
getDTD()
Retrieve the DTD statement for the Date element.
Calendar
getDate()
Getter for property date.
void
insertRecord(Calendar rec, Element elem)
Insert Calendar value record into Element elem.
Calendar
readElement(org.jdom.Element elem)
Read and parse the element given into a Calendar date
void
setDate(Calendar date)
Setter for property date.

Methods inherited from class org.jSyncManager.API.Conduit.Tools.JSXMLElement

readBooleanElement, readByteArrayElement, readByteElement, readCharArrayElement, readCharElement, readDateElement, readDoubleArrayElement, readDoubleElement, readFloatArrayElement, readFloatElement, readIntArrayElement, readIntElement, readLongArrayElement, readLongElement, readStringArrayElement

Field Details

XMLNAME

public static String XMLNAME
Default XML Name for this element.

Constructor Details

JSXMLDate

public JSXMLDate()
Create a default new AddressDBScanner with the default name and current date.

JSXMLDate

public JSXMLDate(String name)
Create new AddressDBScanner with the given name and current date as default.
Parameters:
name - new name for element.

JSXMLDate

public JSXMLDate(String name,
                 Calendar rec)
Create new AddressDBScanner with given name and Calendar date value.
Parameters:
name - new name for element.
rec - Calendar value for element.

Method Details

getDTD

public String getDTD()
Retrieve the DTD statement for the Date element.
Returns:
String containing the DTD for the current element.

getDate

public Calendar getDate()
Getter for property date.
Returns:
Value of property date.

insertRecord

public void insertRecord(Calendar rec,
                         Element elem)
Insert Calendar value record into Element elem.
Parameters:
rec - Calendar value to be inserted.
elem - Element to insert value into.

readElement

public Calendar readElement(org.jdom.Element elem)
Read and parse the element given into a Calendar date
Parameters:
elem - base org.jdom.Element type to parse.
Returns:
Calendar value.

setDate

public void setDate(Calendar date)
Setter for property date.
Parameters:
date - New value of property date.