org.apache.jackrabbit.commons.packaging
Class FilterContentPackage.FilteringIterator
java.lang.Object
org.apache.jackrabbit.commons.packaging.FilterContentPackage.FilteringIterator
- All Implemented Interfaces:
- Iterator
- Enclosing class:
- FilterContentPackage
public static class FilterContentPackage.FilteringIterator
- extends Object
- implements Iterator
Constructor Summary |
FilterContentPackage.FilteringIterator(javax.jcr.Session session,
List contentList,
boolean includeProperties)
Creates a new tree walker that uses the given filter as include and
traversal filter. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
content
protected final List content
- The content we will iterate over.
includeFilter
protected Predicate includeFilter
- Filter that defines which items are included
contentIndex
protected int contentIndex
pathIndex
protected int pathIndex
nextItem
protected javax.jcr.Item nextItem
lastNode
protected javax.jcr.Node lastNode
session
protected final javax.jcr.Session session
nodeIteratorStack
protected final List nodeIteratorStack
includeProperties
protected final boolean includeProperties
propertyIterator
protected javax.jcr.PropertyIterator propertyIterator
FilterContentPackage.FilteringIterator
public FilterContentPackage.FilteringIterator(javax.jcr.Session session,
List contentList,
boolean includeProperties)
- Creates a new tree walker that uses the given filter as include and
traversal filter.
- Parameters:
session
- The session.contentList
- The list of content objects.includeProperties
- Should properties be included.
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interface Iterator
- See Also:
Iterator.hasNext()
checkForNextNode
protected boolean checkForNextNode()
throws javax.jcr.RepositoryException
- Throws:
javax.jcr.RepositoryException
next
public Object next()
- Specified by:
next
in interface Iterator
- See Also:
Iterator.next()
remove
public void remove()
- Specified by:
remove
in interface Iterator
- See Also:
Iterator.remove()
Copyright © 2004-2011 Apache Software Foundation. All Rights Reserved.