Modifier and Type | Interface and Description |
---|---|
interface |
ResourceOrigin<P extends Resource>
Common interface for all resource file origins (e.g.
|
Modifier and Type | Class and Description |
---|---|
class |
AbstractResource
A convenient class to extend by subclasses of
AbstractResourceOrigin . |
class |
ResourceStub
Deprecated.
since 5.4.6 - new
ResourceOrigin.registerResourceChangeHandler(ResourceChangeHandler) allows for registering more sophisticated
resource change handlers rendering this class obsolete. |
Modifier and Type | Method and Description |
---|---|
Resource |
ResourceStub.getParent()
Deprecated.
|
Resource |
Resource.getParent() |
Resource |
AbstractResource.getParent() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
ResourceStub.listChildren()
Deprecated.
|
List<Resource> |
Resource.listChildren() |
List<Resource> |
AbstractResource.listChildren() |
Modifier and Type | Method and Description |
---|---|
boolean |
ResourceVisitor.visitDirectory(Resource resource)
Determines if we should visit this directory resource.
|
void |
ResourceVisitor.visitFile(Resource resource)
Implementations can decide to do anything with the file; note that
ResourceVisitor.visitDirectory(Resource) is
NOT called for files. |
Modifier and Type | Class and Description |
---|---|
class |
ClasspathResource<T extends ClasspathEntry>
A
Resource for ClasspathResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
FileSystemResource
A
Resource for FileSystemResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
JcrResource
A
Resource for JcrResourceOrigin . |
Modifier and Type | Class and Description |
---|---|
class |
LayeredResource
A
Resource for LayeredResourceOrigin . |
Modifier and Type | Method and Description |
---|---|
Resource |
LayeredResource.getFirst() |
Modifier and Type | Method and Description |
---|---|
List<Resource> |
LayeredResource.getLayers() |
Modifier and Type | Method and Description |
---|---|
protected LayeredResource |
LayeredResourceOrigin.newLayeredResource(List<Resource> resources) |
Modifier and Type | Method and Description |
---|---|
static <R extends Resource> |
Functions.compareByHandle()
Deprecated.
since 6.1 use static
Comparator.comparing(Function) with getPath() method reference |
Modifier and Type | Method and Description |
---|---|
static Predicate<Resource> |
Functions.always()
Deprecated.
since 6.1 use concise lambdas with better parameter name
|
static Function<ResourceOrigin,Resource> |
Functions.getByPath(String path)
Deprecated.
since 6.1 use
ResourceOrigin.getByPath(String) and lambdas |
Collection<Resource> |
FileResourceCollectorVisitor.getCollectedResources() |
protected Function<Resource,Void> |
PredicatedResourceVisitor.getFunction()
Can be useful to e.g.
|
static Function<Resource,Resource> |
Functions.getParent()
Deprecated.
since 6.1 use
getParent() method reference |
static Function<Resource,Resource> |
Functions.getParent()
Deprecated.
since 6.1 use
getParent() method reference |
static Function<Resource,String> |
Functions.getPath()
Deprecated.
since 6.1 use
getPath() method reference |
static Function<ResourceOrigin,Resource> |
Functions.getRoot()
Deprecated.
since 6.1 use
ResourceOrigin.getRoot() method reference |
static Predicate<Resource> |
Functions.isDirectory()
Deprecated.
since 6.1 use
isDirectory() method reference |
static Predicate<Resource> |
Functions.isFile()
Deprecated.
since 6.1 use
isFile() method reference |
static Predicate<Resource> |
Functions.never()
Deprecated.
since 6.1 use concise lambdas with better parameter name
|
static Predicate<Resource> |
Functions.pathEquals(CharSequence path) |
static Predicate<Resource> |
Functions.pathMatches(Pattern pattern)
Matches if the input
Resource 's handle matches the given pattern. |
static Predicate<Resource> |
Functions.pathMatches(Predicate<CharSequence> predicate) |
static Predicate<Resource> |
Functions.pathMatches(String pattern) |
static Predicate<Resource> |
Functions.pathStartsWith(CharSequence pathPrefix) |
Modifier and Type | Method and Description |
---|---|
void |
ResourceTreeWalker.traverse(Resource resource) |
boolean |
LoggingResourceVisitor.visitDirectory(Resource resource) |
boolean |
PredicatedResourceVisitor.visitDirectory(Resource resource) |
void |
LoggingResourceVisitor.visitFile(Resource resource) |
void |
PredicatedResourceVisitor.visitFile(Resource resource) |
Modifier and Type | Method and Description |
---|---|
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
static FileResourceCollectorVisitor |
FileResourceCollectorVisitor.on(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.onAllMatchingFiles(Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Traverses all directories, and applies the given
Function to all files, according to applyToFile . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.onAllMatchingFiles(Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Traverses all directories, and applies the given
Function to all files, according to applyToFile . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Function<Resource,Void> function)
Visits everything and applies the given
Function to everything. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitAndApply,
Function<Resource,Void> function)
Visits according to the given
visitAndApply predicate and applies the given Function according to visitAndApply . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitAndApply,
Function<Resource,Void> function)
Visits according to the given
visitAndApply predicate and applies the given Function according to visitAndApply . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyFunction,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyFunction . |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
static PredicatedResourceVisitor |
PredicatedResourceVisitor.with(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function)
Visits according to the given
visitDirectory predicate and applies the given Function according to applyToDirectory and applyToFile depending on the resource's type. |
Constructor and Description |
---|
FileResourceCollectorVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
FileResourceCollectorVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToFile) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
PredicatedResourceVisitor(Predicate<Resource> visitDirectory,
Predicate<Resource> applyToDirectory,
Predicate<Resource> applyToFile,
Function<Resource,Void> function) |
Copyright © 2003–2019 Magnolia International Ltd.. All rights reserved.