com.genesyslab.ail
Interface FilterNode

All Superinterfaces:
FilterTreeElement

public interface FilterNode
extends FilterTreeElement

A filter node that defines a filter in SearchContactTemplate.
A filter node is an expression such as: node OP node OP ... OP leaf OP leaf (OP=operator).


Nested Class Summary
static class FilterNode.NodeOperator
          Constants for the possible operators on filter nodes.
 
Method Summary
 void addFilterLeaf(FilterLeaf aLeaf)
          Adds a simple filter expression FilterLeaf.
 void addFilterNode(FilterNode aNode)
          Adds a new complex filter sub-expression (FilterNode).
 java.util.Collection getFilterLeaves()
          Gets the collection of simple expressions (FilterLeaf) of this complex node.
 java.util.Collection getFilterNodes()
          Gets the collection of complex sub-expressions (FilterNode) of this node.
 FilterNode.NodeOperator getOperator()
          Gets the Operator attribute of the FilterNode object.
 void setOperator(FilterNode.NodeOperator op)
          Sets the Operator attribute of the FilterNode object.
 
Methods inherited from interface com.genesyslab.ail.FilterTreeElement
getParent, isNode
 

Method Detail

setOperator

void setOperator(FilterNode.NodeOperator op)
Sets the Operator attribute of the FilterNode object.

Parameters:
op - the new Operator value as FilterNode.NodeOperator.

getOperator

FilterNode.NodeOperator getOperator()
Gets the Operator attribute of the FilterNode object.

Returns:
the Operator value as FilterNode.NodeOperator.

addFilterLeaf

void addFilterLeaf(FilterLeaf aLeaf)
Adds a simple filter expression FilterLeaf.

Parameters:
aLeaf - a leaf as FilterLeaf.

getFilterLeaves

java.util.Collection getFilterLeaves()
Gets the collection of simple expressions (FilterLeaf) of this complex node.

Returns:
Collection of FilterLeaf.

addFilterNode

void addFilterNode(FilterNode aNode)
Adds a new complex filter sub-expression (FilterNode).

Parameters:
aNode - as FilterNode.

getFilterNodes

java.util.Collection getFilterNodes()
Gets the collection of complex sub-expressions (FilterNode) of this node.

Returns:
Collection of FilterNode.