org.jSyncManager.API.Protocol.Util.StdApps

Class DateBookRecord

Implemented Interfaces:
Enumeration, Serializable

public class DateBookRecord
extends DLPRecord
implements Enumeration

Datebook database record abstraction/parser class. This class represents a Palm Datebook database record.

Field Summary

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

DateBookRecord()
DateBookRecord default constructor.
DateBookRecord(DLPRecord record)
DateBookRecord constructor from DLPRecord.

Method Summary

protected void
generateData()
Generate data block from existing fields.
String
getDescription()
Return the description of this record.
DateBookRecordEntry
getFirstEntry()
Return the first entry in the DateBookRecord.
String
getNote()
Return the associated note for this record.
boolean
hasMoreElements()
Boolean value denoting whether this record has more elements (DateBookRecordEntry records).
Object
nextElement()
Return the next DateBookRecordEntry element in this enumeration.
protected void
parseFields()
Parses the data byte array into Datebook Record fields.
void
resetEnumeration()
Reset the enumeration for the DateBookRecordEntry list.
void
setDescription(String newValue)
Set the description of this record.
void
setFirstEntry(DateBookRecordEntry newValue)
Set the first DateBookRecordEntry for this record.
void
setNote(String newValue)
Set the associated note for this record.
String
toString()
Output a represenation of the record as a String value.

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

Constructor Details

DateBookRecord

public DateBookRecord()
DateBookRecord default constructor.

DateBookRecord

public DateBookRecord(DLPRecord record)
            throws ParseException
DateBookRecord constructor from DLPRecord.
Parameters:
record - org.jSyncManager.API.Protocol.Util.DLPRecord

Method Details

generateData

protected void generateData()
Generate data block from existing fields.
Overrides:
generateData in interface DLPRecord

getDescription

public String getDescription()
Return the description of this record.
Returns:
the description of this record.

getFirstEntry

public DateBookRecordEntry getFirstEntry()
Return the first entry in the DateBookRecord. A DateBookRecord may have multiple entries per record.
Returns:
the first entry in the DateBookRecord.

getNote

public String getNote()
Return the associated note for this record.
Returns:
the associated note for this record.

hasMoreElements

public boolean hasMoreElements()
Boolean value denoting whether this record has more elements (DateBookRecordEntry records).
Returns:
true if this record has more entries, false otherwise.

nextElement

public Object nextElement()
Return the next DateBookRecordEntry element in this enumeration.
Returns:
the next DateBookRecordEntry element.

parseFields

protected void parseFields()
            throws ParseException
Parses the data byte array into Datebook Record fields.
Overrides:
parseFields in interface DLPRecord
Throws:
ParseException - if the data cannot be parsed correctly.

resetEnumeration

public void resetEnumeration()
Reset the enumeration for the DateBookRecordEntry list.

setDescription

public void setDescription(String newValue)
Set the description of this record.
Parameters:
newValue - this records description.

setFirstEntry

public void setFirstEntry(DateBookRecordEntry newValue)
Set the first DateBookRecordEntry for this record.
Parameters:
newValue - the new first entry for this Datebook record.

setNote

public void setNote(String newValue)
Set the associated note for this record.
Parameters:
newValue - the associated note for this record.

toString

public String toString()
Output a represenation of the record as a String value.
Overrides:
toString in interface DLPRecord
Returns:
A String representation of this record.