Class FilteringItemVisitor

java.lang.Object
org.apache.jackrabbit.commons.visitor.FilteringItemVisitor
All Implemented Interfaces:
ItemVisitor

public abstract class FilteringItemVisitor extends Object implements ItemVisitor
  • 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

      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 a Property.

      It calls TraversingItemVisitor.entering(Property, int) followed by TraversingItemVisitor.leaving(Property, int). Implement these abstract methods to specify behaviour on 'arrival at' and 'after leaving' the Property.

      If this method throws, the visiting process is aborted.

      Specified by:
      visit in interface ItemVisitor
      Parameters:
      property - the Property 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 a Node.

      It calls TraversingItemVisitor.entering(Node, int) followed by TraversingItemVisitor.leaving(Node, int). Implement these abstract methods to specify behaviour on 'arrival at' and 'after leaving' the Node.

      If this method throws, the visiting process is aborted.

      Specified by:
      visit in interface ItemVisitor
      Parameters:
      node - the Node that is accepting this visitor.
      Throws:
      RepositoryException - if an error occurrs