public class ChildrenCollector extends TraversingItemVisitor.Default
ChildrenCollector is a utility class
which can be used to 'collect' child elements of a
node. It implements the ItemVisitor
interface.TraversingItemVisitor.Default| Constructor and Description |
|---|
ChildrenCollector(java.util.Collection children,
boolean collectNodes,
boolean collectProperties,
int maxLevel)
Constructs a
ChildrenCollector |
visit, visitpublic ChildrenCollector(java.util.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)Copyright © 2010 - 2023 Adobe. All Rights Reserved