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 javax.jcr.Node |
lastNode |
protected javax.jcr.Item |
nextItem |
protected List<javax.jcr.NodeIterator> |
nodeIteratorStack |
protected int |
pathIndex |
protected javax.jcr.PropertyIterator |
propertyIterator |
protected javax.jcr.Session |
session |
Constructor and Description |
---|
FilterContentPackage.FilteringIterator(javax.jcr.Session session,
List<FilterContentPackage.Content> contentList,
boolean includeProperties)
Creates a new tree walker that uses the given filter as include and
traversal filter.
|
protected final List<FilterContentPackage.Content> content
protected Predicate includeFilter
protected int contentIndex
protected int pathIndex
protected javax.jcr.Item nextItem
protected javax.jcr.Node lastNode
protected final javax.jcr.Session session
protected final List<javax.jcr.NodeIterator> nodeIteratorStack
protected final boolean includeProperties
protected javax.jcr.PropertyIterator propertyIterator
public FilterContentPackage.FilteringIterator(javax.jcr.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 javax.jcr.RepositoryException
javax.jcr.RepositoryException
public Object next()
next
in interface Iterator
Iterator.next()
public void remove()
remove
in interface Iterator
Iterator.remove()
Copyright © 2004-2020 The Apache Software Foundation. All Rights Reserved.