org.apache.sling.resourceresolver.impl.helper
Class ResourceIterator
java.lang.Object
org.apache.sling.resourceresolver.impl.helper.ResourceIterator
- All Implemented Interfaces:
- Iterator<org.apache.sling.api.resource.Resource>
public class ResourceIterator
- extends Object
- implements Iterator<org.apache.sling.api.resource.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.
|
Method Summary |
boolean |
hasNext()
|
org.apache.sling.api.resource.Resource |
next()
|
void |
remove()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ResourceIterator
public ResourceIterator(ResourceResolverContext ctx,
org.apache.sling.api.resource.Resource parentResource,
RootResourceProviderEntry rootProviderEntry)
hasNext
public boolean hasNext()
- Specified by:
hasNext in interface Iterator<org.apache.sling.api.resource.Resource>
next
public org.apache.sling.api.resource.Resource next()
- Specified by:
next in interface Iterator<org.apache.sling.api.resource.Resource>
remove
public void remove()
- Specified by:
remove in interface Iterator<org.apache.sling.api.resource.Resource>
Copyright © 2007-2014 The Apache Software Foundation. All Rights Reserved.