org.xcmis.search
Class Visitors.WalkAllVisitor

java.lang.Object
  extended by org.xcmis.search.Visitors.NavigationVisitor
      extended by org.xcmis.search.Visitors.WalkAllVisitor
All Implemented Interfaces:
QueryObjectModelVisitor
Enclosing class:
Visitors

public static class Visitors.WalkAllVisitor
extends Visitors.NavigationVisitor

A visitor implementation that walks the entire query object tree and delegates to another supplied visitor to do the actual work.


Field Summary
 
Fields inherited from class org.xcmis.search.Visitors.NavigationVisitor
strategy
 
Constructor Summary
protected Visitors.WalkAllVisitor(QueryObjectModelVisitor strategy)
          Create a visitor that walks all query objects.
 
Method Summary
 void visit(And and)
          
 void visit(BindVariableName variableName)
          
 void visit(ChildNode child)
          
 void visit(ChildNodeJoinCondition joinCondition)
          
 void visit(Column column)
          
 void visit(Comparison comparison)
          
 void visit(DescendantNode descendant)
          
 void visit(DescendantNodeJoinCondition condition)
          
 void visit(EquiJoinCondition condition)
          
 void visit(FullTextSearch fullTextSearch)
          
 void visit(FullTextSearchScore score)
          
 void visit(Join join)
          
 void visit(Length length)
          
 void visit(Limit limit)
          
 void visit(Literal literal)
          
 void visit(LowerCase lowerCase)
          
 void visit(NodeDepth depth)
          
 void visit(NodeLocalName nodeLocalName)
          
 void visit(NodeName nodeName)
          
 void visit(Not not)
          
 void visit(Or or)
          
 void visit(Ordering ordering)
          
 void visit(PropertyExistence existence)
          
 void visit(PropertyValue propertyValue)
          
 void visit(Query query)
          
 void visit(SameNode sameNode)
          
 void visit(SameNodeJoinCondition condition)
          
 void visit(Selector selector)
           
 void visit(UpperCase upperCase)
          
 
Methods inherited from class org.xcmis.search.Visitors.NavigationVisitor
enqueue, enqueue, visitNext
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Visitors.WalkAllVisitor

protected Visitors.WalkAllVisitor(QueryObjectModelVisitor strategy)
Create a visitor that walks all query objects.

Parameters:
strategy - the visitor that should be called at every node.
Method Detail

visit

public void visit(And and)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(And)

visit

public void visit(BindVariableName variableName)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(BindVariableName)

visit

public void visit(ChildNode child)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(ChildNode)

visit

public void visit(ChildNodeJoinCondition joinCondition)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(ChildNodeJoinCondition)

visit

public void visit(Column column)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Column)

visit

public void visit(Comparison comparison)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Comparison)

visit

public void visit(DescendantNode descendant)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(DescendantNode)

visit

public void visit(DescendantNodeJoinCondition condition)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(DescendantNodeJoinCondition)

visit

public void visit(EquiJoinCondition condition)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(EquiJoinCondition)

visit

public void visit(FullTextSearch fullTextSearch)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(FullTextSearch)

visit

public void visit(FullTextSearchScore score)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(FullTextSearchScore)

visit

public void visit(Join join)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Join)

visit

public void visit(Length length)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Length)

visit

public void visit(Limit limit)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Limit)

visit

public void visit(Literal literal)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Literal)

visit

public void visit(LowerCase lowerCase)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(LowerCase)

visit

public void visit(NodeDepth depth)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(NodeDepth)

visit

public void visit(NodeLocalName nodeLocalName)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(NodeLocalName)

visit

public void visit(NodeName nodeName)
           throws VisitException

Throws:
VisitException
See Also:
QueryObjectModelVisitor.visit(NodeName)

visit

public void visit(Not not)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor#visit(Not)}Not)

visit

public void visit(Or or)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Or)

visit

public void visit(Ordering ordering)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Ordering)

visit

public void visit(PropertyExistence existence)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(PropertyExistence)

visit

public void visit(PropertyValue propertyValue)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(PropertyValue)

visit

public void visit(Query query)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(Query)

visit

public void visit(SameNode sameNode)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(SameNode)

visit

public void visit(SameNodeJoinCondition condition)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(SameNodeJoinCondition)

visit

public void visit(UpperCase upperCase)
           throws VisitException

Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(UpperCase)

visit

public void visit(Selector selector)
           throws VisitException
Throws:
VisitException - if exception occurs
See Also:
QueryObjectModelVisitor.visit(org.xcmis.search.model.source.Selector)


Copyright © 2010 eXo Platform SAS. All Rights Reserved.