public interface PoiCategoryManager
PoiCategorys. It manages the categories' hierarchy in
a tree structure. Adding and deleting categories should be done via this interface.| Modifier and Type | Method and Description |
|---|---|
PoiCategory |
getPoiCategoryByID(int id)
Returns a category given by its ID or throws an exception if this category does not exist.
|
PoiCategory |
getPoiCategoryByTitle(java.lang.String title)
Returns a category given by unique title or throws an exception if this category does not
exist.
|
PoiCategory |
getRootCategory()
Returns the category tree's root.
|
PoiCategory getPoiCategoryByID(int id) throws UnknownPoiCategoryException
id - The category's ID.UnknownPoiCategoryException - if the category has not been added to the PoiCategoryManager.PoiCategory getPoiCategoryByTitle(java.lang.String title) throws UnknownPoiCategoryException
title - The category's titlec.title.equalsIgnoreCase(title).UnknownPoiCategoryException - if the category has not been added to the PoiCategoryManager.PoiCategory getRootCategory() throws UnknownPoiCategoryException
UnknownPoiCategoryException - if the category has not been added to the PoiCategoryManager.