public abstract class FilteringItemVisitor extends Object implements ItemVisitor
| Constructor and Description |
|---|
FilteringItemVisitor() |
| Modifier and Type | Method and 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 a
Node. |
void |
visit(Property property)
Called when the Visitor is passed to a
Property. |
public void setMaxLevel(int ml)
public void setBreadthFirst(boolean flag)
public void setWalkProperties(boolean flag)
public void setIncludePredicate(Predicate ip)
public void setTraversalPredicate(Predicate tp)
public void visit(Property property) throws RepositoryException
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.
visit in interface ItemVisitorproperty - the Property that is accepting this visitor.RepositoryException - if an error occurrspublic void visit(Node node) throws RepositoryException
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.
visit in interface ItemVisitornode - the Node that is accepting this visitor.RepositoryException - if an error occurrsCopyright © 2010 - 2020 Adobe. All Rights Reserved