public class ExactMatchPoiCategoryFilter extends java.lang.Object implements PoiCategoryFilter
WhitelistPoiCategoryFilter
no child categories of an added category are accepted.Constructor and Description |
---|
ExactMatchPoiCategoryFilter()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
addCategory(PoiCategory category)
Adds a 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 ExactMatchPoiCategoryFilter()
public void addCategory(PoiCategory category)
PoiCategoryFilter
addCategory
in interface PoiCategoryFilter
category
- The category to be added.public java.util.Collection<PoiCategory> getAcceptedCategories()
getAcceptedCategories
in interface PoiCategoryFilter
public java.util.Collection<PoiCategory> getAcceptedSuperCategories()
PoiCategoryFilter
getAcceptedSuperCategories
in interface PoiCategoryFilter
public boolean isAcceptedCategory(PoiCategory category)
PoiCategoryFilter
isAcceptedCategory
in interface PoiCategoryFilter
category
- The POI's category.