public abstract class AbstractResourceVisitor
extends java.lang.Object
visit(Resource)
method for each visited resource.
It decouples the actual traversal code from application code.
Concrete subclasses must implement the visit(Resource)
method.
There is no possibility to stop traversal in this visitor. If you want to skip certain
parts of the subtree or stop traversal at a certain point rather use
org.apache.sling.resource.filter.ResourceStream
or
org.apache.sling.resource.filter.ResourceFilterStream
.Constructor and Description |
---|
AbstractResourceVisitor() |
Modifier and Type | Method and Description |
---|---|
void |
accept(Resource res)
Visit the given resource and all its descendants.
|
public void accept(Resource res)
res
- The resourceCopyright © 2010 - 2023 Adobe. All Rights Reserved