Package org.mapsforge.poi.storage
Class ExactMatchPoiCategoryFilter
java.lang.Object
org.mapsforge.poi.storage.ExactMatchPoiCategoryFilter
- All Implemented Interfaces:
PoiCategoryFilter
A category filter that accepts all categories added to it. Unless
WhitelistPoiCategoryFilter no child categories of an added category are accepted.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddCategory(PoiCategory category) Adds a category to the whitelist.Returns a set of top-level categories for all accepted categories.booleanisAcceptedCategory(PoiCategory category) Returns true if a POI's category is accepted and therefore shall be added to the poi file.
-
Constructor Details
-
ExactMatchPoiCategoryFilter
public ExactMatchPoiCategoryFilter()Default constructor.
-
-
Method Details
-
addCategory
Description copied from interface:PoiCategoryFilterAdds a category to the whitelist.- Specified by:
addCategoryin interfacePoiCategoryFilter- Parameters:
category- The category to be added.
-
getAcceptedCategories
- Specified by:
getAcceptedCategoriesin interfacePoiCategoryFilter- Returns:
- Set of all categories that are accepted by this filter.
-
getAcceptedSuperCategories
Description copied from interface:PoiCategoryFilterReturns a set of top-level categories for all accepted categories. These are all accepted categories whose parent category is null or not an accepted category.- Specified by:
getAcceptedSuperCategoriesin interfacePoiCategoryFilter- Returns:
- Set of top-level categories for all accepted categories.
-
isAcceptedCategory
Description copied from interface:PoiCategoryFilterReturns true if a POI's category is accepted and therefore shall be added to the poi file.- Specified by:
isAcceptedCategoryin interfacePoiCategoryFilter- Parameters:
category- The POI's category.- Returns:
- true if a POI's category is accepted and therefore shall be added to the poi file.
-