|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.extrememessaging.ResponseMaster.eCategories
public final class eCategories
This class holds information about the categories
Field Summary | |
---|---|
static int |
DefaultCategory
The default category |
static int |
NotCategorized
The category returned if a rule did not match |
static int |
NUM_CATEGORIES
The number of categories |
Constructor Summary | |
---|---|
eCategories()
|
Method Summary | |
---|---|
static boolean |
FromIsOriginalToForCategory(int CategoryID)
Is the from address is the original to address for this category? |
static int |
GetCategoryIDFromName(java.lang.String CategoryName)
Looks up the id of the category from the name |
static java.lang.String |
GetCategoryNameFromID(int eCategory)
Looks up the name of the category from the id |
static void |
ReadFromFiles(java.lang.String[] saFileNames)
Read the list of categories |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static int NUM_CATEGORIES
public static int DefaultCategory
public static final int NotCategorized
Constructor Detail |
---|
public eCategories()
Method Detail |
---|
public static boolean FromIsOriginalToForCategory(int CategoryID)
public static void ReadFromFiles(java.lang.String[] saFileNames) throws ResponseMasterException
saFileNames
- The names of the files to read the list of categories from
ResponseMasterException
- is thrown if there is a problempublic static int GetCategoryIDFromName(java.lang.String CategoryName) throws InvalidCategoryName
CategoryName
- The name of the category
An
- InvalidCategoryName exception
is thrown if the category name is incorrect
InvalidCategoryName
public static java.lang.String GetCategoryNameFromID(int eCategory)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |