public class WhitelistPoiCategoryFilter extends java.lang.Object implements PoiCategoryFilter
| Constructor and Description |
|---|
WhitelistPoiCategoryFilter()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addCategory(PoiCategory category)
Adds a POI category to the whitelist.
|
java.util.Collection<PoiCategory> |
getAcceptedCategories() |
java.util.Collection<PoiCategory> |
getAcceptedSuperCategories()
Returns a set of top-level categories for all accepted categories.
|
boolean |
isAcceptedCategory(PoiCategory category)
Returns true if a POI's category is accepted and therefore shall be added to the poi file.
|
public WhitelistPoiCategoryFilter()
public void addCategory(PoiCategory category)
addCategory in interface PoiCategoryFiltercategory - The category to be added to the whitelist.public java.util.Collection<PoiCategory> getAcceptedCategories()
getAcceptedCategories in interface PoiCategoryFilterpublic java.util.Collection<PoiCategory> getAcceptedSuperCategories()
PoiCategoryFiltergetAcceptedSuperCategories in interface PoiCategoryFilterpublic boolean isAcceptedCategory(PoiCategory category)
PoiCategoryFilterisAcceptedCategory in interface PoiCategoryFiltercategory - The POI's category.