Class FilteringItemVisitor
java.lang.Object
org.apache.jackrabbit.commons.visitor.FilteringItemVisitor
- All Implemented Interfaces:
ItemVisitor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidsetBreadthFirst(boolean flag) voidvoidsetMaxLevel(int ml) voidvoidsetWalkProperties(boolean flag) voidCalled when the Visitor is passed to aNode.voidCalled when the Visitor is passed to aProperty.
-
Constructor Details
-
FilteringItemVisitor
public FilteringItemVisitor()
-
-
Method Details
-
setMaxLevel
public void setMaxLevel(int ml) -
setBreadthFirst
public void setBreadthFirst(boolean flag) -
setWalkProperties
public void setWalkProperties(boolean flag) -
setIncludePredicate
-
setTraversalPredicate
-
visit
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
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
-