Package javax.jcr.util
Class TraversingItemVisitor.Default
- java.lang.Object
-
- javax.jcr.util.TraversingItemVisitor
-
- javax.jcr.util.TraversingItemVisitor.Default
-
- All Implemented Interfaces:
ItemVisitor
- Enclosing class:
- TraversingItemVisitor
public static class TraversingItemVisitor.Default extends TraversingItemVisitor
Convenience class providing default implementations of the abstract methods ofTraversingItemVisitor.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class javax.jcr.util.TraversingItemVisitor
TraversingItemVisitor.Default
-
-
Field Summary
-
Fields inherited from class javax.jcr.util.TraversingItemVisitor
breadthFirst, maxLevel
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidentering(Node node, int level)Implement this method to add behavior performed before aNodeis visited.protected voidentering(Property property, int level)Implement this method to add behavior performed before aPropertyis visited.protected voidleaving(Node node, int level)Implement this method to add behavior performed after aNodeis visited.protected voidleaving(Property property, int level)Implement this method to add behavior performed after aPropertyis visited.-
Methods inherited from class javax.jcr.util.TraversingItemVisitor
visit, visit
-
-
-
-
Constructor Detail
-
Default
public Default()
- See Also:
TraversingItemVisitor()
-
Default
public Default(boolean breadthFirst)
- Parameters:
breadthFirst- a boolean- See Also:
TraversingItemVisitor()
-
Default
public Default(boolean breadthFirst, int maxLevel)- Parameters:
breadthFirst- a booleanmaxLevel- an int- See Also:
TraversingItemVisitor(boolean, int)
-
-
Method Detail
-
entering
protected void entering(Node node, int level) throws RepositoryException
Description copied from class:TraversingItemVisitorImplement this method to add behavior performed before aNodeis visited.- Specified by:
enteringin classTraversingItemVisitor- Parameters:
node- theNodethat is accepting this visitor.level- hierarchy level of this node (the root node starts at level 0).- Throws:
RepositoryException- if an error occurs.- See Also:
TraversingItemVisitor.entering(Node, int)
-
entering
protected void entering(Property property, int level) throws RepositoryException
Description copied from class:TraversingItemVisitorImplement this method to add behavior performed before aPropertyis visited.- Specified by:
enteringin classTraversingItemVisitor- Parameters:
property- thePropertythat is accepting this visitor.level- hierarchy level of this property (the root node starts at level 0).- Throws:
RepositoryException- if an error occurs.- See Also:
TraversingItemVisitor.entering(Property, int)
-
leaving
protected void leaving(Node node, int level) throws RepositoryException
Description copied from class:TraversingItemVisitorImplement this method to add behavior performed after aNodeis visited.- Specified by:
leavingin classTraversingItemVisitor- Parameters:
node- theNodethat is accepting this visitor.level- hierarchy level of this node (the root node starts at level 0).- Throws:
RepositoryException- if an error occurs.- See Also:
TraversingItemVisitor.leaving(Node, int)
-
leaving
protected void leaving(Property property, int level) throws RepositoryException
Description copied from class:TraversingItemVisitorImplement this method to add behavior performed after aPropertyis visited.- Specified by:
leavingin classTraversingItemVisitor- Parameters:
property- thePropertythat is accepting this visitor.level- hierarchy level of this property (the root node starts at level 0).- Throws:
RepositoryException- if an error occurs.- See Also:
TraversingItemVisitor.leaving(Property, int)
-
-