org.apache.sling.jcr.resource.internal.helper.jcr
Class JcrNodeResourceIterator
java.lang.Object
org.apache.sling.jcr.resource.internal.helper.jcr.JcrNodeResourceIterator
- All Implemented Interfaces:
- Iterator<Resource>
public class JcrNodeResourceIterator
- extends Object
- implements Iterator<Resource>
The 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.
Method Summary |
boolean |
hasNext()
|
Resource |
next()
|
void |
remove()
Throws UnsupportedOperationException as this method is not
supported by this implementation. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
JcrNodeResourceIterator
public JcrNodeResourceIterator(ResourceResolver resourceResolver,
javax.jcr.NodeIterator nodes,
ClassLoader dynamicClassLoader)
- Creates an instance using the given resource manager and the nodes
provided as a node iterator.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator<Resource>
next
public Resource next()
- Specified by:
next
in interface Iterator<Resource>
remove
public void remove()
- Throws
UnsupportedOperationException
as this method is not
supported by this implementation.
- Specified by:
remove
in interface Iterator<Resource>
Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.