com.businessobjects.rebean.wi
Interface FilterConditionContainer

All Superinterfaces:
FilterConditionNode, TreeNode
All Known Subinterfaces:
ConditionContainer, FilterContainer

public interface FilterConditionContainer
extends FilterConditionNode

Warning: This interface is no longer functional from the SAP BusinessObjects 4.0 release onwards.

The FilterConditionContainer interface holds several FilterConditionObjects and/or more FilterConditionContainers. All children are combined by a logical operator.

Example:

+- FilterConditionContainer(OR)
    |
    +- FilterConditionObject(revenue less than 1000000)
    |
    +- FilterConditionContainer(AND)
        |
        +- FilterConditionObject(year equal to 2002)
        |
        +- FilterConditionObject(holiday period)
corresponds to:
[revenue less than 1000000] OR ([year equal to 2002] AND [holiday period])

See Also:
Query, ReportElement

Method Summary
 void checkValid()
          Checks if all children of this container are valid filters or conditions.
 FilterConditionContainer createFilterConditionContainer(LogicalOperator operator)
          Creates and adds a new FilterConditionContainer to this one.
 LogicalOperator getOperator()
          Returns the operator that is applied on all children.
 void setOperator(LogicalOperator operator)
          Changes the operator that is applied on all children.
 
Methods inherited from interface com.businessobjects.rebean.wi.FilterConditionNode
getFilterConditionNode, getID, getName, remove, removeAllChildren
 
Methods inherited from interface com.businessobjects.rebean.wi.TreeNode
getChildAt, getChildCount, getIndex, getParent, isLeaf
 

Method Detail

createFilterConditionContainer

FilterConditionContainer createFilterConditionContainer(LogicalOperator operator)
Creates and adds a new FilterConditionContainer to this one.

Parameters:
operator - an operator to initialize the new container with
Returns:
the new container
Throws:
java.lang.NullPointerException - when operator is null

getOperator

LogicalOperator getOperator()
Returns the operator that is applied on all children.

Returns:
the operator

setOperator

void setOperator(LogicalOperator operator)
Changes the operator that is applied on all children.

Parameters:
operator - the new operator
Throws:
java.lang.NullPointerException - when operator is null

checkValid

void checkValid()
                throws REException
Checks if all children of this container are valid filters or conditions. If not, an exception is thrown.

Throws:
FilterConditionException - when a child element has incorrect data
REException