jSyncManager

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

java.lang.Object
  |
  +--org.jSyncManager.API.Protocol.Util.StdApps.CategoryInfo

public class CategoryInfo
extends java.lang.Object

A class to hold Category information for the standard PalmOS databases. This class is also usuable for any other databases that follow the PalmOS categury information standards.

Version:
$Revision: 1.11 $
Author:
Brad BARCLAY <bbarclay@jsyncmanager.org>
Last modified by: $Author: yaztromo $ on $Date: 2003/05/08 04:34:22 $.

Field Summary
static byte MAX_CATEGORIES
          The maximum number of categories allowed in a single database.
static byte MAX_NAME_LENGTH
          The maximum length, in bytes, of a categories name.
 
Constructor Summary
CategoryInfo()
          Construct a new Category Info object using null information.
 
Method Summary
 byte getCategoryID()
          Retreives the ID number for this category.
 java.lang.String getCategoryName()
          Retreives the name of this category.
 boolean getModifiedFlag()
          Retreives the modified flag for this category.
 void setCategoryID(byte id)
          Sets the ID number for this category.
 void setCategoryName(java.lang.String name)
          Sets the name of this category.
(package private)  void setModifiedFlag(boolean flag)
          Sets the modified flag for this category.
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

MAX_CATEGORIES

public static final byte MAX_CATEGORIES
The maximum number of categories allowed in a single database.

MAX_NAME_LENGTH

public static final byte MAX_NAME_LENGTH
The maximum length, in bytes, of a categories name.
Constructor Detail

CategoryInfo

public CategoryInfo()
Construct a new Category Info object using null information.
Method Detail

getCategoryID

public byte getCategoryID()
Retreives the ID number for this category.
Returns:
the ID number for this category.

getCategoryName

public java.lang.String getCategoryName()
Retreives the name of this category.
Returns:
the name of this category.

getModifiedFlag

public boolean getModifiedFlag()
Retreives the modified flag for this category.
Returns:
true if this category has been modified, false otherwise.

setCategoryID

public void setCategoryID(byte id)
Sets the ID number for this category.
Parameters:
id - the ID number for this category.

setCategoryName

public void setCategoryName(java.lang.String name)
Sets the name of this category.
Parameters:
name - the name of this category.

setModifiedFlag

void setModifiedFlag(boolean flag)
Sets the modified flag for this category.
Parameters:
flag - set to true if this category has been modified, false otherwise.

jSyncManager

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