| Modifier and Type | Method and Description |
|---|---|
Q |
AbstractQuery.children(Predicate<T> filter)
Get list of the children for each Resource in the collection.
|
Q |
AbstractQuery.closest(Predicate<T> predicate)
For each Resource in the collection, return the first element matching the selector testing the
Resource itself and traversing up its ancestors.
|
Q |
AbstractQuery.filter(Predicate<T> predicate)
Filter Resource collection using given predicate object.
|
Q |
AbstractQuery.find(Predicate<T> predicate)
For each Resource in collection use breadth-first search to return all its descendants.
|
Q |
AbstractQuery.has(Predicate<T> predicate)
Pick such Resources from the collection that have descendant matching the selector.
|
Q |
AbstractQuery.next(Predicate<T> predicate)
Return the next sibling for each Resource in the collection and filter it by a selector.
|
Q |
AbstractQuery.nextAll(Predicate<T> predicate)
Return all following siblings for each Resource in the collection, filtering them by a selector.
|
Q |
AbstractQuery.nextUntil(Predicate<T> predicate)
Return all following siblings for each Resource in the collection up to, but not including, Resource
matched by a selector.
|
Q |
AbstractQuery.not(Predicate<T> predicate)
Remove elements from the collection.
|
Q |
AbstractQuery.parents(Predicate<T> predicate)
For each element in the collection find its all ancestor, filtered by a selector.
|
Q |
AbstractQuery.parentsUntil(Predicate<T> predicate)
For each element in the collection find all of its ancestors until the predicate is met.
|
Q |
AbstractQuery.prev(Predicate<T> predicate)
Return the previous sibling for each Resource in the collection and filter it by a selector.
|
Q |
AbstractQuery.prevAll(Predicate<T> predicate)
Return all previous siblings for each Resource in the collection, filtering them by a selector.
|
Q |
AbstractQuery.prevUntil(Predicate<T> predicate)
Return all previous siblings for each Resource in the collection up to, but not including, Resource
matched by a selector.
|
Q |
AbstractQuery.siblings(Predicate<T> predicate)
Return siblings for the given Resources filtered by a selector.
|
| Modifier and Type | Method and Description |
|---|---|
Predicate<T> |
TreeProvider.getPredicate(String type,
String name,
List<Attribute> attributes) |
| Constructor and Description |
|---|
ClosestFunction(Predicate<T> predicate,
TreeProvider<T> provider) |
FilterFunction(Predicate<T> predicate) |
HasFunction(Predicate<T> predicate,
SearchStrategy searchStrategy,
TreeProvider<T> provider) |
NextFunction(Predicate<T> until,
TreeProvider<T> provider) |
ParentsFunction(Predicate<T> until,
TreeProvider<T> provider) |
PrevFunction(Predicate<T> until,
TreeProvider<T> provider) |
| Constructor and Description |
|---|
FilteringIterator(Iterator<Option<T>> iterator,
Predicate<T> predicate) |
ParentsIterator(Predicate<T> until,
T currentResource,
TreeProvider<T> provider) |
SiblingsIterator(Predicate<T> until,
T resource,
SiblingsIterator.Type type,
TreeProvider<T> provider) |
| Modifier and Type | Class and Description |
|---|---|
class |
IterableContainsPredicate<T> |
class |
ParentPredicate<T> |
class |
RejectingPredicate<T> |
| Constructor and Description |
|---|
RejectingPredicate(Predicate<T> predicate) |
| Modifier and Type | Class and Description |
|---|---|
class |
ResourcePredicate |
class |
ResourcePropertyPredicate |
| Modifier and Type | Method and Description |
|---|---|
Predicate<org.apache.sling.api.resource.Resource> |
ResourceTreeProvider.getPredicate(String type,
String id,
List<Attribute> attributes) |
| Modifier and Type | Class and Description |
|---|---|
class |
SelectorFunction<T> |
Copyright © 2007–2015 The Apache Software Foundation. All rights reserved.