public abstract class AbstractResourceVisitor extends Object
AbstractResourceVisitor helps in traversing a
resource tree by decoupling the actual traversal code
from application code. Concrete subclasses should implement
the visit(Resource) method.| Constructor and Description |
|---|
AbstractResourceVisitor() |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Resource res)
Visit the given resource and all its descendants.
|
protected void |
traverseChildren(Iterator<Resource> children)
Visit the given resources.
|
protected abstract void |
visit(Resource res)
Implement this method to do actual work on the resources.
|
Copyright © 2007–2017 The Apache Software Foundation. All rights reserved.