public class FileResourceCollectorVisitor extends PredicatedResourceVisitor
PredicatedResourceVisitor
which simply "collects" file resources matching a given pattern.
Never collects directories, but lets you control which directories to traverses for efficiency. If you need finer-grained control,
use PredicatedResourceVisitor
or implement your own ResourceVisitor
Modifier | Constructor and Description |
---|---|
protected |
FileResourceCollectorVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
Modifier and Type | Method and Description |
---|---|
Collection<Resource> |
getCollectedResources() |
static FileResourceCollectorVisitor |
on(Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
on(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
getFunction, onAllMatchingFiles, visitDirectory, visitFile, with, with, with, with
public static FileResourceCollectorVisitor on(Predicate<Resource> applyToFile)
public static FileResourceCollectorVisitor on(Predicate<Resource> visitDirectory, Predicate<Resource> applyToFile)
public Collection<Resource> getCollectedResources()
Copyright © 2003–2020 Magnolia International Ltd.. All rights reserved.