@ProviderType public class SlingQuery extends AbstractQuery<org.apache.sling.api.resource.Resource,SlingQuery>
functions| Modifier and Type | Method and Description |
|---|---|
static SlingQuery |
$(org.apache.sling.api.resource.Resource... resources) |
static SlingQuery |
$(org.apache.sling.api.resource.ResourceResolver resolver) |
protected SlingQuery |
clone(AbstractQuery<org.apache.sling.api.resource.Resource,SlingQuery> original,
SearchStrategy strategy) |
<E> Iterable<E> |
map(Class<? extends E> clazz)
Transform the whole collection to a new
Iterable object, invoking
Adaptable.adaptTo(Class) method on each Resource. |
String |
toString() |
add, add, asList, children, children, children, children, closest, closest, closest, eq, filter, filter, filter, find, find, find, find, first, has, has, has, iterator, last, next, next, next, next, nextAll, nextAll, nextAll, nextAll, nextUntil, nextUntil, nextUntil, not, not, not, parent, parents, parents, parents, parents, parentsUntil, parentsUntil, parentsUntil, prev, prev, prev, prev, prevAll, prevAll, prevAll, prevAll, prevUntil, prevUntil, prevUntil, searchStrategy, siblings, siblings, siblings, siblings, slice, slice, stream, uniqueclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitforEach, spliteratorpublic static SlingQuery $(org.apache.sling.api.resource.Resource... resources)
public static SlingQuery $(org.apache.sling.api.resource.ResourceResolver resolver)
public <E> Iterable<E> map(Class<? extends E> clazz)
Iterable object, invoking
Adaptable.adaptTo(Class) method on each Resource. If some Resource can't be adapted to the
class (eg. adaptTo() returns null), it will be skipped.E - type of the clazzclazz - Class used to adapt the Resourcesprotected SlingQuery clone(AbstractQuery<org.apache.sling.api.resource.Resource,SlingQuery> original, SearchStrategy strategy)
clone in class AbstractQuery<org.apache.sling.api.resource.Resource,SlingQuery>public String toString()
toString in class AbstractQuery<org.apache.sling.api.resource.Resource,SlingQuery>Copyright © 2007–2018 The Apache Software Foundation. All rights reserved.