Package org.mapsforge.poi.storage
Interface PoiCategoryFilter
-
- All Known Implementing Classes:
ExactMatchPoiCategoryFilter,WhitelistPoiCategoryFilter
public interface PoiCategoryFilterInterface for filtering accepted POIs based on their tag.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidaddCategory(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.booleanisAcceptedCategory(PoiCategory category)Returns true if a POI's category is accepted and therefore shall be added to the poi file.
-
-
-
Method Detail
-
addCategory
void addCategory(PoiCategory category)
Adds a category to the whitelist.- Parameters:
category- The category to be added.
-
getAcceptedCategories
java.util.Collection<PoiCategory> getAcceptedCategories()
- Returns:
- Set of all categories that are accepted by this filter.
-
getAcceptedSuperCategories
java.util.Collection<PoiCategory> getAcceptedSuperCategories()
Returns 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.- Returns:
- Set of top-level categories for all accepted categories.
-
isAcceptedCategory
boolean isAcceptedCategory(PoiCategory category)
Returns true if a POI's category is accepted and therefore shall be added to the poi file.- Parameters:
category- The POI's category.- Returns:
- true if a POI's category is accepted and therefore shall be added to the poi file.
-
-