org.jSyncManager.API.Conduit.Tools.vTypes

Class iCalendar

Implemented Interfaces:
Serializable

public class iCalendar
extends vObject

vCalendar specification implementation for the DateBookRecord API class.
See Also:
DateBookRecord

Field Summary

static String
RECORDNAME

Fields inherited from class org.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vObject

BEGIN, CRLF, END, properties

Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord

ARCHIVED, BUSY, DATA_INCLUDED, DELETED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DIRTY, SECRET, SORT_DATABASE, attributes, category, data, index, inputData, recordID, recordSize

Constructor Summary

iCalendar()
Creates a new default instance of vCard
iCalendar(InputStream stream)
Creates a new instance of iCalendar using the input from the provided stream.
iCalendar(Reader reader)
Creates a new instance of iCalendar using the input from the provided stream.
iCalendar(vFoldedFile file)
Creates a new instance of vCard using input from a vFoldedFile instance.
iCalendar(DateBookRecord rec)
Create new JSXMLDocument with given DateBookRecord.

Method Summary

vPropertyList
getProperties()
Getter for property properties.
vProperty
getProperty(String key)
Getter for property properties.
DateBookRecord
getRecord()
Getter for property record.
void
importRecord(DateBookRecord rec)
Setter for property record.
static void
main(argv[] )
Main test method
protected vObject
parse(String line)
void
setProperties(vPropertyList properties)
Setter for property properties.

Methods inherited from class org.jSyncManager.API.Conduit.Tools.vTypes.vCommon.vObject

checkMandatory, checkMandatoryEntry, checkSingleEntry, format, generateData, getGroup, getName, getProperties, getResources, getVObjectClass, importRecord, isSingleInstance, isStarted, parse, parseName, setGroup, setName, setProperties, setResources, setStarted, toString

Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord

addAttribute, checkAttribute, clearAttribute, generateData, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, parseFields, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize, toString

Field Details

RECORDNAME

public static String RECORDNAME

Constructor Details

iCalendar

public iCalendar()
Creates a new default instance of vCard

iCalendar

public iCalendar(InputStream stream)
            throws vParseException,
                   IOException
Creates a new instance of iCalendar using the input from the provided stream.
Parameters:
stream - the InputStream to use for input.
Throws:
vParseException - thrown in the event of a parsing exception.

iCalendar

public iCalendar(Reader reader)
            throws vParseException,
                   IOException
Creates a new instance of iCalendar using the input from the provided stream.
Parameters:
reader - the Reader to use for input.
Throws:
vParseException - thrown in the event of a parsing exception.

iCalendar

public iCalendar(vFoldedFile file)
            throws vParseException
Creates a new instance of vCard using input from a vFoldedFile instance.
Parameters:
file - vFoldedFile from which the parser gets each line.
Throws:
vParseException - from parse(vFoldedFile).

iCalendar

public iCalendar(DateBookRecord rec)
            throws vParseException,
                   java.io.IOException
Create new JSXMLDocument with given DateBookRecord.
Parameters:
rec - DateBookRecord

Method Details

getProperties

public vPropertyList getProperties()
Getter for property properties.
Overrides:
getProperties in interface vObject
Returns:
Value of property properties.

getProperty

public vProperty getProperty(String key)
Getter for property properties.
Parameters:
key - String key checked against resource list of type names for vCard
Returns:
vProperty value of property.

getRecord

public DateBookRecord getRecord()
Getter for property record.
Returns:
Value of property record.

importRecord

public void importRecord(DateBookRecord rec)
Setter for property record.
Parameters:
rec - New value of property record.

main

public static void main(argv[] )
Main test method
Parameters:

parse

protected vObject parse(String line)
            throws java.text.ParseException,
                   java.io.IOException

setProperties

public void setProperties(vPropertyList properties)
Setter for property properties.
Overrides:
setProperties in interface vObject
Parameters:
properties - New value of property properties.