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
-
-
Field Summary
Fields Modifier and Type Field Description protected List<FilterContentPackage.Content>
content
The content we will iterate over.protected int
contentIndex
protected Predicate
includeFilter
Filter that defines which items are includedprotected boolean
includeProperties
protected Node
lastNode
protected Item
nextItem
protected List<NodeIterator>
nodeIteratorStack
protected int
pathIndex
protected PropertyIterator
propertyIterator
protected Session
session
-
Constructor Summary
Constructors Constructor Description FilteringIterator(Session session, List<FilterContentPackage.Content> contentList, boolean includeProperties)
Creates a new tree walker that uses the given filter as include and traversal filter.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
checkForNextNode()
boolean
hasNext()
Object
next()
void
remove()
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.Iterator
forEachRemaining
-
-
-
-
Field Detail
-
content
protected final List<FilterContentPackage.Content> 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 Item nextItem
-
lastNode
protected Node lastNode
-
session
protected final Session session
-
nodeIteratorStack
protected final List<NodeIterator> nodeIteratorStack
-
includeProperties
protected final boolean includeProperties
-
propertyIterator
protected PropertyIterator propertyIterator
-
-
Constructor Detail
-
FilteringIterator
public FilteringIterator(Session session, List<FilterContentPackage.Content> 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.
-
-
Method Detail
-
hasNext
public boolean hasNext()
- Specified by:
hasNext
in interfaceIterator
- See Also:
Iterator.hasNext()
-
checkForNextNode
protected boolean checkForNextNode() throws RepositoryException
- Throws:
RepositoryException
-
next
public Object next()
- Specified by:
next
in interfaceIterator
- See Also:
Iterator.next()
-
remove
public void remove()
- Specified by:
remove
in interfaceIterator
- See Also:
Iterator.remove()
-
-