Interface PathPolicy
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
DefaultPathPolicy,NonTopLevelPathPolicy
public interface PathPolicy extends Serializable
Filtering category paths inCategoryParentsStream, where a given category is added to the stream, and than all its parents are being added one after the other by successively removing the last component.
That loop should have a stop point - the default approach (excluding the ROOT) is implemented inDefaultOrdinalPolicy.- WARNING: This API is experimental and might change in incompatible ways in the next release.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanshouldAdd(CategoryPath categoryPath)Check whether a given category path should be added to the stream.
-
-
-
Method Detail
-
shouldAdd
boolean shouldAdd(CategoryPath categoryPath)
Check whether a given category path should be added to the stream.- Parameters:
categoryPath- A given category path which is to be tested for stream addition.- Returns:
trueif the category path should be added.falseotherwise.
-
-