org.palo.api
Interface DimensionFilter


Deprecated. use HierarchyFilter instead.

public interface DimensionFilter

A DimensionFilter is used to decide which Elements of a base Dimension are visible in its associated virtual dimension.

Version:
$ID$

Method Summary
 boolean acceptElement(Element element)
          Deprecated. Return true if the given Element passes the filter, otherwise return false.
 void init(Dimension dimension)
          Deprecated. Inits the filter and passes a reference to the virtual dimension owning the filter.
 boolean isFlat()
          Deprecated. Turns this dimension into a flat dimension loosing and hierarchies and consolidations.
 ElementNode[] postprocessRootNodes(ElementNode[] rootNodes)
          Deprecated. If and only if the dimension is flat, this method can be used to post-process the root element nodes.
 

Method Detail

init

void init(Dimension dimension)
Deprecated. 
Inits the filter and passes a reference to the virtual dimension owning the filter.

Parameters:
dimension - the owning virtual dimension of the filter.

acceptElement

boolean acceptElement(Element element)
Deprecated. 
Return true if the given Element passes the filter, otherwise return false.

Parameters:
element - the Element that is being filtered.
Returns:
true to pass, false to filter out.

isFlat

boolean isFlat()
Deprecated. 
Turns this dimension into a flat dimension loosing and hierarchies and consolidations.

Returns:
true if the dimension is flat.

postprocessRootNodes

ElementNode[] postprocessRootNodes(ElementNode[] rootNodes)
Deprecated. 
If and only if the dimension is flat, this method can be used to post-process the root element nodes.

Parameters:
rootNodes - the original root nodes.
Returns:
a new array of root nodes or null if the original root nodes should be used.