public class JcrNodeResourceIterator extends Object implements Iterator<org.apache.sling.api.resource.Resource>
JcrNodeResourceIterator
class is a resource iterator,
which returns resources for each node of an underlying
NodeIterator
. Nodes in the node iterator which cannot be
accessed or for which a resource cannot be created are skipped.Constructor and Description |
---|
JcrNodeResourceIterator(org.apache.sling.api.resource.ResourceResolver resourceResolver,
String parentPath,
String parentVersion,
javax.jcr.NodeIterator nodes,
HelperData helper,
org.apache.sling.api.resource.path.PathSet excludedPaths)
Creates an instance using the given resource manager and the nodes
provided as a node iterator.
|
Modifier and Type | Method and Description |
---|---|
boolean |
hasNext() |
org.apache.sling.api.resource.Resource |
next() |
void |
remove()
Throws
UnsupportedOperationException as this method is not
supported by this implementation. |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
public JcrNodeResourceIterator(org.apache.sling.api.resource.ResourceResolver resourceResolver, String parentPath, String parentVersion, javax.jcr.NodeIterator nodes, HelperData helper, org.apache.sling.api.resource.path.PathSet excludedPaths)
resourceResolver
- the resolverparentPath
- the parent pathparentVersion
- the parent versionnodes
- the node iteratorhelper
- the helperexcludedPaths
- the set of excluded pathsCopyright © 2007–2019 The Apache Software Foundation. All rights reserved.