org.jSyncManager.API.Protocol.Util.StdApps
Class CategoryInfo
java.lang.Objectorg.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.
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.
|
CategoryInfo()- Construct a new Category Info object using null information.
|
CategoryInfo(String name, byte id)- Construct a new CategoryInfo object using the supplied name and ID.
|
byte | getCategoryID()- Retreives the ID number for this category.
|
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(String name)- Sets the name of this category.
|
void | setModifiedFlag(boolean flag)- Sets the modified flag for this category.
|
String | toString()- Converts the information in this CategoryInfo object to a human-readable String.
|
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.
CategoryInfo
public CategoryInfo()
Construct a new Category Info object using null information.
CategoryInfo
public CategoryInfo(String name,
byte id)Construct a new CategoryInfo object using the supplied name and ID.
name - the name of the category.id - the category ID value.
getCategoryID
public byte getCategoryID()
Retreives the ID number for this category.
- the ID number for this category.
getCategoryName
public String getCategoryName()
Retreives the name of this category.
- the name of this category.
getModifiedFlag
public boolean getModifiedFlag()
Retreives the modified flag for this category.
- true if this category has been modified, false otherwise.
setCategoryID
public void setCategoryID(byte id)
Sets the ID number for this category.
id - the ID number for this category.
setCategoryName
public void setCategoryName(String name)
Sets the name of this category.
name - the name of this category.
setModifiedFlag
public void setModifiedFlag(boolean flag)
Sets the modified flag for this category.
flag - set to true if this category has been modified, false otherwise.
toString
public String toString()
Converts the information in this CategoryInfo object to a human-readable String.
- this CategoryInfo as a human-readable string.