Class FilteringItemVisitor
- java.lang.Object
-
- org.apache.jackrabbit.commons.visitor.FilteringItemVisitor
-
- All Implemented Interfaces:
ItemVisitor
public abstract class FilteringItemVisitor extends java.lang.Object implements ItemVisitor
-
-
Constructor Summary
Constructors Constructor Description FilteringItemVisitor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
setBreadthFirst(boolean flag)
void
setIncludePredicate(Predicate ip)
void
setMaxLevel(int ml)
void
setTraversalPredicate(Predicate tp)
void
setWalkProperties(boolean flag)
void
visit(Node node)
Called when the Visitor is passed to aNode
.void
visit(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:
visit
in interfaceItemVisitor
- Parameters:
property
- theProperty
that 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:
visit
in interfaceItemVisitor
- Parameters:
node
- theNode
that is accepting this visitor.- Throws:
RepositoryException
- if an error occurrs
-
-