com.flexive.shared.search.query
Interface QueryNodeVisitor

All Known Implementing Classes:
MaxNodeIdVisitor

public interface QueryNodeVisitor

A simple query node visitor, useful for examining a query tree.

Author:
Daniel Lichtenberger (daniel.lichtenberger@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at)

Method Summary
 void setCurrentParent(QueryOperatorNode operatorNode)
          Sets the parent node of the visited node.
 void visit(QueryOperatorNode operatorNode)
          Visit an operator node, i.e.
 void visit(QueryValueNode valueNode)
          Visit a value node, i.e.
 

Method Detail

visit

void visit(QueryOperatorNode operatorNode)
Visit an operator node, i.e. a node in the tree with a query operator (usually AND/OR).

Parameters:
operatorNode - the operator node visited

visit

void visit(QueryValueNode valueNode)
Visit a value node, i.e. a leaf node with some kind of value attached.

Parameters:
valueNode - the value node visited

setCurrentParent

void setCurrentParent(QueryOperatorNode operatorNode)
Sets the parent node of the visited node.

Parameters:
operatorNode - the parent node of the next visited node