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 TaxonomyWriter.getParent(int). DefaultOrdinalPolicy.| Modifier and Type | Method and Description |
|---|---|
void |
init(TaxonomyWriter taxonomyWriter)
Initialize the policy with a TaxonomyWriter.
|
boolean |
shouldAdd(int ordinal)
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.true if the category should be added.
false otherwise.void init(TaxonomyWriter taxonomyWriter)
taxonomyWriter - A relevant taxonomyWriter object, with which ordinals sent to
shouldAdd(int) are examined.