jSyncManager

org.jSyncManager.API.Protocol.Util.StdApps
Class DateBookRecord

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.DLPRecord
        |
        +--org.jSyncManager.API.Protocol.Util.StdApps.DateBookRecord
All Implemented Interfaces:
java.util.Enumeration, java.io.Serializable

public class DateBookRecord
extends DLPRecord
implements java.util.Enumeration

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

Version:
$Revision: 1.21 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/13 19:29:46 $.
See Also:
Serialized Form

Fields inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
ARCHIVED, attributes, BUSY, category, data, DATA_INCLUDED, DELETE_ALL_IN_CATEGORY, DELETE_ALL_RECORDS, DELETED, DIRTY, index, inputData, recordID, recordSize, SECRET, SORT_DATABASE
 
Constructor Summary
DateBookRecord()
          DateBookRecord default constructor.
DateBookRecord(DLPRecord record)
          DateBookRecord constructor from DLPRecord.
 
Method Summary
protected  void generateData()
          Generate data block from existing fields.
 java.lang.String getDescription()
          Return the description of this record.
 DateBookRecordEntry getFirstEntry()
          Return the first entry in the DateBookRecord.
 java.lang.String getNote()
          Return the associated note for this record.
 boolean hasMoreElements()
          Boolean value denoting whether this record has more elements (DateBookRecordEntry records).
 java.lang.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(java.lang.String newValue)
          Set the description of this record.
 void setFirstEntry(DateBookRecordEntry newValue)
          Set the first DateBookRecordEntry for this record.
 void setNote(java.lang.String newValue)
          Set the associated note for this record.
 java.lang.String toString()
          Output a represenation of the record as a String value.
 
Methods inherited from class org.jSyncManager.API.Protocol.Util.DLPRecord
checkAttribute, getAttributes, getCategory, getData, getIndex, getRecordID, getRecordSize, setAttributes, setCategory, setData, setIndex, setRecordID, setRecordSize
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DateBookRecord

public DateBookRecord()
DateBookRecord default constructor.

DateBookRecord

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

generateData

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

getDescription

public java.lang.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 java.lang.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).
Specified by:
hasMoreElements in interface java.util.Enumeration
Returns:
true if this record has more entries, false otherwise.
See Also:
java.util.Enumeration#hasMoreElements()

nextElement

public java.lang.Object nextElement()
Return the next DateBookRecordEntry element in this enumeration.
Specified by:
nextElement in interface java.util.Enumeration
Returns:
the next DateBookRecordEntry element.
See Also:
java.util.Enumeration#nextElement()

parseFields

protected void parseFields()
Parses the data byte array into Datebook Record fields.
Overrides:
parseFields in class DLPRecord

resetEnumeration

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

setDescription

public void setDescription(java.lang.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(java.lang.String newValue)
Set the associated note for this record.
Parameters:
newValue - the associated note for this record.

toString

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

jSyncManager

Copyright (c) 1999 - 2003 Brad BARCLAY and others. All Rights Reserved.