Class FilteringItemVisitor
- java.lang.Object
-
- org.apache.jackrabbit.commons.visitor.FilteringItemVisitor
-
- All Implemented Interfaces:
ItemVisitor
public abstract class FilteringItemVisitor extends Object implements ItemVisitor
-
-
Constructor Summary
Constructors Constructor Description FilteringItemVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidsetBreadthFirst(boolean flag)voidsetIncludePredicate(Predicate ip)voidsetMaxLevel(int ml)voidsetTraversalPredicate(Predicate tp)voidsetWalkProperties(boolean flag)voidvisit(Node node)Called when the Visitor is passed to aNode.voidvisit(Property property)Called when the Visitor is passed to aProperty.
-
-
-
Method Detail
-
setMaxLevel
public void setMaxLevel(int ml)
-
setBreadthFirst
public void setBreadthFirst(boolean flag)
-
setWalkProperties
public void setWalkProperties(boolean flag)
-
setIncludePredicate
public void setIncludePredicate(Predicate ip)
-
setTraversalPredicate
public void setTraversalPredicate(Predicate tp)
-
visit
public void visit(Property property) throws RepositoryException
Called when the Visitor is passed to aProperty.It calls
TraversingItemVisitor.entering(Property, int)followed byTraversingItemVisitor.leaving(Property, int). Implement these abstract methods to specify behaviour on 'arrival at' and 'after leaving' theProperty.If this method throws, the visiting process is aborted.
- Specified by:
visitin interfaceItemVisitor- Parameters:
property- thePropertythat is accepting this visitor.- Throws:
RepositoryException- if an error occurrs
-
visit
public void visit(Node node) throws RepositoryException
Called when the Visitor is passed to aNode.It calls
TraversingItemVisitor.entering(Node, int)followed byTraversingItemVisitor.leaving(Node, int). Implement these abstract methods to specify behaviour on 'arrival at' and 'after leaving' theNode.If this method throws, the visiting process is aborted.
- Specified by:
visitin interfaceItemVisitor- Parameters:
node- theNodethat is accepting this visitor.- Throws:
RepositoryException- if an error occurrs
-
-