public interface ResourceVisitor
ResourceOrigin.traverseWith(ResourceVisitor)
to visit resources.PredicatedResourceVisitor
,
LoggingResourceVisitor
Modifier and Type | Method and Description |
---|---|
boolean |
visitDirectory(Resource resource)
Determines if we should visit this directory resource.
|
void |
visitFile(Resource resource)
Implementations can decide to do anything with the file; note that
visitDirectory(Resource) is
NOT called for files. |
boolean visitDirectory(Resource resource)
visitFile(Resource)
is
NOT called for directories.void visitFile(Resource resource)
visitDirectory(Resource)
is
NOT called for files.Copyright © 2003–2018 Magnolia International Ltd.. All rights reserved.