org.apache.sling.jcr.resource.internal.helper
Class ResourceIterator

java.lang.Object
  extended by org.apache.sling.jcr.resource.internal.helper.ResourceIterator
All Implemented Interfaces:
Iterator<Resource>

public class ResourceIterator
extends Object
implements Iterator<Resource>

The ResourceIterator implements the Iterator<Resource> returned from the ResourceResolver.listChidlren(Resource) method.

Note: This iterator is created by the JcrResourceResolver.listChildren(Resource) and is not intended for general use by any other code. This class uses internal API of the ResourceProviderEntry class.


Constructor Summary
ResourceIterator(Resource parentResource, ResourceProviderEntry rootProviderEntry)
           
 
Method Summary
 boolean hasNext()
           
 Resource next()
           
 void remove()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResourceIterator

public ResourceIterator(Resource parentResource,
                        ResourceProviderEntry rootProviderEntry)
Method Detail

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()
Specified by:
remove in interface Iterator<Resource>


Copyright © 2007-2013 The Apache Software Foundation. All Rights Reserved.