public class ChildrenCollector
extends javax.jcr.util.TraversingItemVisitor.Default
ChildrenCollector is a utility class
which can be used to 'collect' child elements of a
node. It implements the ItemVisitor
interface.| Constructor and Description |
|---|
ChildrenCollector(Collection children,
boolean collectNodes,
boolean collectProperties,
int maxLevel)
Constructs a
ChildrenCollector |
public ChildrenCollector(Collection children, boolean collectNodes, boolean collectProperties, int maxLevel)
ChildrenCollectorchildren - where the matching children should be addedcollectNodes - true, if child nodes should be collected; otherwise falsecollectProperties - true, if child properties should be collected; otherwise falsemaxLevel - number of hierarchy levels to traverse
(e.g. 1 for direct children only, 2 for children and their children, and so on)protected void entering(javax.jcr.Node node,
int level)
throws javax.jcr.RepositoryException
entering in class javax.jcr.util.TraversingItemVisitor.Defaultjavax.jcr.RepositoryExceptionprotected void entering(javax.jcr.Property property,
int level)
throws javax.jcr.RepositoryException
entering in class javax.jcr.util.TraversingItemVisitor.Defaultjavax.jcr.RepositoryExceptionCopyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.