org.xcmis.search
Class Visitors.NavigationVisitor
java.lang.Object
org.xcmis.search.Visitors.NavigationVisitor
- All Implemented Interfaces:
- QueryObjectModelVisitor
- Direct Known Subclasses:
- Visitors.WalkAllVisitor
- Enclosing class:
- Visitors
public abstract static class Visitors.NavigationVisitor
- extends Object
- implements QueryObjectModelVisitor
An abstract visitor implementation that performs navigation of the query object.
Subclasses should always implement the visit(T object) methods by performing the following actions:
- Call
strategy.visit(object);
- Add any children of
object that are to be visited using enqueue(QueryElement)
- Call
visitNext()
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface org.xcmis.search.QueryObjectModelVisitor |
visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit, visit |
strategy
protected final QueryObjectModelVisitor strategy
Visitors.NavigationVisitor
protected Visitors.NavigationVisitor(QueryObjectModelVisitor strategy)
- Create a visitor that walks all query objects.
- Parameters:
strategy - the visitor that should be called at every node.
enqueue
protected final void enqueue(Iterable<? extends QueryElement> objectsToBeVisited)
enqueue
protected final void enqueue(QueryElement objectToBeVisited)
visitNext
protected final void visitNext()
throws VisitException
- Throws:
VisitException
Copyright © 2010 eXo Platform SAS. All Rights Reserved.