org.jSyncManager.API.Protocol.Util.StdApps

Class DateBookAppBlock

Implemented Interfaces:
Serializable

public class DateBookAppBlock
extends AbstractAppBlock

The application block parser for the DateBook application. This class provides all of the parsing and access routines for the data contained within the application block belonging to the DateBook handheld application.

Field Summary

Fields inherited from class org.jSyncManager.API.Protocol.Util.StdApps.AbstractAppBlock

categories, lastUniqueID, numCategories, sortOrder

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

blockSize, data

Constructor Summary

DateBookAppBlock()
DateBookAppBlock default constructor.
DateBookAppBlock(DLPBlock block)
DateBookAppBlock constructor from DLPBlock.

Method Summary

protected void
generateData()
Generate the raw data block from the existing fields.
static String
getDatabaseName()
Returns the name of the database on the Palm this app block processes.
byte
getStartOfWeek()
Return the byte value for the start of the week.
protected void
parseFields()
Parse the data fields.
void
setStartOfWeek(byte newValue)
Set the value for the start of the week field.

Methods inherited from class org.jSyncManager.API.Protocol.Util.StdApps.AbstractAppBlock

addCategory, findCategoryInfo, findCategoryInfoByName, findCategoryInfoObject, getCategories, getCategoryInfo, getLastUniqueID, getNumCategories, getSortOrder, setCategoryInfo, setLastUniqueID, setSortOrder

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

generateData, getBlockSize, getData, parseFields, setData, toString

Constructor Details

DateBookAppBlock

public DateBookAppBlock()
DateBookAppBlock default constructor.

DateBookAppBlock

public DateBookAppBlock(DLPBlock block)
            throws ParseException
DateBookAppBlock constructor from DLPBlock. This constructor will parse the DLPBlock data.
Parameters:
block - an application block from the Datebook database.

Method Details

generateData

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

getDatabaseName

public static String getDatabaseName()
Returns the name of the database on the Palm this app block processes.
Returns:
the name of the database on the Palm this app block processes.

getStartOfWeek

public byte getStartOfWeek()
Return the byte value for the start of the week.
Returns:
the byte value for the start of the week.

parseFields

protected void parseFields()
            throws ParseException
Parse the data fields.
Overrides:
parseFields in interface DLPBlock
Throws:
ParseException - if the data cannot be parsed correctly.

setStartOfWeek

public void setStartOfWeek(byte newValue)
Set the value for the start of the week field.
Parameters:
newValue - the value for the start of the week field.