org.apache.jackrabbit.spi.commons.query.qom
Class DefaultTraversingQOMTreeVisitor

java.lang.Object
  extended by org.apache.jackrabbit.spi.commons.query.qom.DefaultQOMTreeVisitor
      extended by org.apache.jackrabbit.spi.commons.query.qom.DefaultTraversingQOMTreeVisitor
All Implemented Interfaces:
QOMTreeVisitor

public class DefaultTraversingQOMTreeVisitor
extends DefaultQOMTreeVisitor

DefaultTraversingQOMTreeVisitor default implementation of a traversing QOMTreeVisitor.


Constructor Summary
DefaultTraversingQOMTreeVisitor()
           
 
Method Summary
 Object visit(AndImpl node, Object data)
          Calls accept on each of the attached constraints of the AND node.
 Object visit(ComparisonImpl node, Object data)
          Calls accept on the two operands in the comparison node.
 Object visit(FullTextSearchImpl node, Object data)
          Calls accept on the static operand in the fulltext search constraint.
 Object visit(JoinImpl node, Object data)
          Calls accept on the two sources and the join condition in the join node.
 Object visit(LengthImpl node, Object data)
          Calls accept on the property value in the length node.
 Object visit(LowerCaseImpl node, Object data)
          Calls accept on the dynamic operand in the lower-case node.
 Object visit(NotImpl node, Object data)
          Calls accept on the constraint in the NOT node.
 Object visit(OrderingImpl node, Object data)
          Calls accept on the dynamic operand in the ordering node.
 Object visit(OrImpl node, Object data)
          Calls accept on each of the attached constraints of the OR node.
 Object visit(QueryObjectModelTree node, Object data)
          Calls accept on the following contained QOM nodes: Source Constraints Orderings Columns
 Object visit(UpperCaseImpl node, Object data)
          Calls accept on the dynamic operand in the lower-case node.
 
Methods inherited from class org.apache.jackrabbit.spi.commons.query.qom.DefaultQOMTreeVisitor
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DefaultTraversingQOMTreeVisitor

public DefaultTraversingQOMTreeVisitor()
Method Detail

visit

public final Object visit(AndImpl node,
                          Object data)
                   throws Exception
Calls accept on each of the attached constraints of the AND node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(ComparisonImpl node,
                    Object data)
             throws Exception
Calls accept on the two operands in the comparison node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(FullTextSearchImpl node,
                    Object data)
             throws Exception
Calls accept on the static operand in the fulltext search constraint.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(JoinImpl node,
                    Object data)
             throws Exception
Calls accept on the two sources and the join condition in the join node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(LengthImpl node,
                    Object data)
             throws Exception
Calls accept on the property value in the length node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(LowerCaseImpl node,
                    Object data)
             throws Exception
Calls accept on the dynamic operand in the lower-case node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(NotImpl node,
                    Object data)
             throws Exception
Calls accept on the constraint in the NOT node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(OrderingImpl node,
                    Object data)
             throws Exception
Calls accept on the dynamic operand in the ordering node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(OrImpl node,
                    Object data)
             throws Exception
Calls accept on each of the attached constraints of the OR node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(QueryObjectModelTree node,
                    Object data)
             throws Exception
Calls accept on the following contained QOM nodes:

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception

visit

public Object visit(UpperCaseImpl node,
                    Object data)
             throws Exception
Calls accept on the dynamic operand in the lower-case node.

Specified by:
visit in interface QOMTreeVisitor
Overrides:
visit in class DefaultQOMTreeVisitor
Throws:
Exception


Copyright © 2004-2010 The Apache Software Foundation. All Rights Reserved.