public interface OrdinalPolicy extends Serializable
CategoryParentsStream, where a given category ordinal is added to the stream, and than its parents are being added one after the other using
|Modifier and Type||Method and Description|
Initialize the policy with a TaxonomyWriter.
Check whether a given category ordinal should be added to the stream.
boolean shouldAdd(int ordinal)
ordinal- A given category ordinal which is to be tested for stream addition.
trueif the category should be added.
void init(TaxonomyWriter taxonomyWriter)
taxonomyWriter- A relevant taxonomyWriter object, with which ordinals sent to