|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface OrdinalPolicy
Filtering category ordinals in 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)
.
That loop should have a stop point - the default approach (excluding the
ROOT) is implemented in DefaultOrdinalPolicy
.
Method Summary | |
---|---|
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. |
Method Detail |
---|
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.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |