|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectnet.firstpartners.rp.mid.category.CategoryManager
public class CategoryManager
A Category is one set of data within the link KnowledgeSphere. To put it another way, a KnowledgeSphere is made up of many Categories. The CategoryManager makes it easier to deal with all the categories in the system at one.
| Field Summary | |
|---|---|
private java.util.LinkedList |
categoryList
List of the category struct objects |
private java.lang.String |
defaultCategName
Default category name |
protected org.apache.log4j.Logger |
logger
Logger for this class and subclasses |
private int |
maxLengthCategName
Maxim length for the category name |
private java.lang.String |
patternCategName
Pattern for generation of the category name |
private java.lang.String |
root
Category root |
private int |
systemDepthLevel
The default system extraction depth |
| Constructor Summary | |
|---|---|
private |
CategoryManager()
Creates a new CategoryManager object. |
| Method Summary | |
|---|---|
void |
addInformation(INewInformation info)
Add a new piece of information to the system |
private java.lang.String |
getAndAddUniqueCategoryName(java.lang.String name,
java.lang.String location)
Generate the name for the category using a preselected one . |
java.util.LinkedList |
getCategoryList()
Get the category list |
private java.lang.String |
getCategoryName(java.lang.String location)
Get the location name upon the info data (specified uri location) |
java.lang.String |
getDefaultCategName()
Get the default category name |
int |
getMaxLengthCategName()
Get the maxim length for the category name |
java.lang.String |
getPatternCategName()
Get the pattern of the category name |
java.lang.String |
getRoot()
Get the root folder of the category manager |
int |
getSystemDepthLevel()
|
void |
onLoad()
Called by the PluginManager on each plugin when this class is first loaded |
void |
setCategoryList(java.util.LinkedList categoryList)
Set the category list |
void |
setDefaultCategName(java.lang.String defaultCategName)
Set the default category name |
void |
setMaxLengthCategName(int maxCategLength)
Set the maxim length for the category name |
void |
setPatternCategName(java.lang.String patternCategName)
Set the category name pattern |
void |
setRoot(java.lang.String root)
Set the root folder of the plugin manager. |
void |
setSystemDepthLevel(int systemDepthLevel)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected final org.apache.log4j.Logger logger
private java.lang.String root
private java.lang.String defaultCategName
private int maxLengthCategName
private java.lang.String patternCategName
private java.util.LinkedList categoryList
private int systemDepthLevel
| Constructor Detail |
|---|
private CategoryManager()
| Method Detail |
|---|
public void onLoad()
onLoad in interface IPlugin
public void addInformation(INewInformation info)
throws RpException
addInformation in interface IInterestedInAddinfo - Information to be added to the system
RpException - Error occur in process the information
private java.lang.String getAndAddUniqueCategoryName(java.lang.String name,
java.lang.String location)
name - Name of the category generated upon the information namelocation - DOCUMENT ME!
private java.lang.String getCategoryName(java.lang.String location)
location - Uri location
public java.util.LinkedList getCategoryList()
getCategoryList in interface ICategoryManagerpublic void setCategoryList(java.util.LinkedList categoryList)
categoryList - Category list to setpublic java.lang.String getDefaultCategName()
public void setDefaultCategName(java.lang.String defaultCategName)
defaultCategName - Default category name to setpublic int getMaxLengthCategName()
public void setMaxLengthCategName(int maxCategLength)
maxCategLength - Maxim length for category to setpublic java.lang.String getPatternCategName()
public void setPatternCategName(java.lang.String patternCategName)
patternCategName - Category name pattern to be usedpublic java.lang.String getRoot()
getRoot in interface ICategoryManagerpublic void setRoot(java.lang.String root)
root - Root folder of the plugin manager ti set.public int getSystemDepthLevel()
public void setSystemDepthLevel(int systemDepthLevel)
systemDepthLevel - The systemDepthLevel to set.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||