public static class TraversingItemVisitor.Default extends TraversingItemVisitor
TraversingItemVisitor
.TraversingItemVisitor.Default
breadthFirst, maxLevel
Constructor and Description |
---|
TraversingItemVisitor.Default() |
TraversingItemVisitor.Default(boolean breadthFirst) |
TraversingItemVisitor.Default(boolean breadthFirst,
int maxLevel) |
Modifier and Type | Method and Description |
---|---|
protected void |
entering(Node node,
int level)
Implement this method to add behaviour performed before a
Node is visited. |
protected void |
entering(Property property,
int level)
Implement this method to add behaviour performed before a
Property is visited. |
protected void |
leaving(Node node,
int level)
Implement this method to add behaviour performed after a
Node is visited. |
protected void |
leaving(Property property,
int level)
Implement this method to add behaviour performed after a
Property is visited. |
visit, visit
public TraversingItemVisitor.Default()
public TraversingItemVisitor.Default(boolean breadthFirst)
public TraversingItemVisitor.Default(boolean breadthFirst, int maxLevel)
protected void entering(Node node, int level) throws RepositoryException
TraversingItemVisitor
Node
is visited.entering
in class TraversingItemVisitor
node
- the Node
that is accepting this visitor.level
- hierarchy level of this node (the root node starts at level 0)RepositoryException
- if an error occurrsTraversingItemVisitor.entering(Node, int)
protected void entering(Property property, int level) throws RepositoryException
TraversingItemVisitor
Property
is visited.entering
in class TraversingItemVisitor
property
- the Property
that is accepting this visitor.level
- hierarchy level of this property (the root node starts at level 0)RepositoryException
- if an error occurrsTraversingItemVisitor.entering(Property, int)
protected void leaving(Node node, int level) throws RepositoryException
TraversingItemVisitor
Node
is visited.leaving
in class TraversingItemVisitor
node
- the Node
that is accepting this visitor.level
- hierarchy level of this node (the root node starts at level 0)RepositoryException
- if an error occurrsTraversingItemVisitor.leaving(Node, int)
protected void leaving(Property property, int level) throws RepositoryException
TraversingItemVisitor
Property
is visited.leaving
in class TraversingItemVisitor
property
- the Property
that is accepting this visitor.level
- hierarchy level of this property (the root node starts at level 0)RepositoryException
- if an error occurrsTraversingItemVisitor.leaving(Property, int)