public static class FilterContentPackage.FilteringIterator extends Object implements Iterator
Modifier and Type | Field and Description |
---|---|
protected List<FilterContentPackage.Content> |
content
The content we will iterate over.
|
protected int |
contentIndex |
protected Predicate |
includeFilter
Filter that defines which items are included
|
protected boolean |
includeProperties |
protected Node |
lastNode |
protected Item |
nextItem |
protected List<NodeIterator> |
nodeIteratorStack |
protected int |
pathIndex |
protected PropertyIterator |
propertyIterator |
protected Session |
session |
Constructor and 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.
|
Modifier and Type | Method and Description |
---|---|
protected boolean |
checkForNextNode() |
boolean |
hasNext() |
Object |
next() |
void |
remove() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
forEachRemaining
protected final List<FilterContentPackage.Content> content
protected Predicate includeFilter
protected int contentIndex
protected int pathIndex
protected Item nextItem
protected Node lastNode
protected final Session session
protected final List<NodeIterator> nodeIteratorStack
protected final boolean includeProperties
protected PropertyIterator propertyIterator
public FilteringIterator(Session session, List<FilterContentPackage.Content> contentList, boolean includeProperties)
session
- The session.contentList
- The list of content objects.includeProperties
- Should properties be included.public boolean hasNext()
hasNext
in interface Iterator
Iterator.hasNext()
protected boolean checkForNextNode() throws RepositoryException
RepositoryException
public Object next()
next
in interface Iterator
Iterator.next()
public void remove()
remove
in interface Iterator
Iterator.remove()
Copyright © 2004–2023 The Apache Software Foundation. All rights reserved.