|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface HierarchyFilter
A HierarchyFilter is used to decide which Elements
of a base Hierarchy are visible in its associated virtual
hierarchy.
| Method Summary | |
|---|---|
boolean |
acceptElement(Element element)
Return true if the given Element passes
the filter, otherwise return false. |
void |
init(Hierarchy hierarchy)
Inits the filter and passes a reference to the virtual hierarchy owning the filter. |
boolean |
isFlat()
Turns this dimension into a flat dimension loosing and hierarchies and consolidations. |
ElementNode[] |
postprocessRootNodes(ElementNode[] rootNodes)
If and only if the dimension is flat, this method can be used to post-process the root element nodes. |
| Method Detail |
|---|
void init(Hierarchy hierarchy)
hierarchy - the owning virtual dimension of the filter.boolean acceptElement(Element element)
true if the given Element passes
the filter, otherwise return false.
element - the Element that is being filtered.
true to pass, false to filter out.boolean isFlat()
true if the dimension is flat.ElementNode[] postprocessRootNodes(ElementNode[] rootNodes)
rootNodes - the original root nodes.
null if the
original root nodes should be used.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||