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 |
|---|
FilterContentPackage.FilteringIterator(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 Item nextItem
protected Node lastNode
protected final Session session
protected final List<NodeIterator> nodeIteratorStack
protected final boolean includeProperties
protected PropertyIterator propertyIterator
public FilterContentPackage.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 IteratorIterator.hasNext()protected boolean checkForNextNode()
throws RepositoryException
RepositoryExceptionpublic Object next()
next in interface IteratorIterator.next()public void remove()
remove in interface IteratorIterator.remove()Copyright © 2004-2016 The Apache Software Foundation. All Rights Reserved.