public final class eCategories
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
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 and Description |
|---|
eCategories() |
| Modifier and Type | Method and Description |
|---|---|
static boolean |
FromIsOriginalToForCategory(int CategoryID)
Is the from address 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
|
public static int NUM_CATEGORIES
public static int DefaultCategory
public static final int NotCategorized
public static boolean FromIsOriginalToForCategory(int CategoryID)
CategoryID - The ID of category to checkpublic static void ReadFromFiles(java.lang.String[] saFileNames)
throws ResponseMasterException
saFileNames - The names of the files to read the list of categories fromResponseMasterException - is thrown if there is a problempublic static int GetCategoryIDFromName(java.lang.String CategoryName)
throws InvalidCategoryName
CategoryName - The name of the categoryInvalidCategoryName - if the category name is incorrectpublic static java.lang.String GetCategoryNameFromID(int eCategory)
eCategory - The ID of category to check