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
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 org.apache.commons.collections.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 nodeIteratorStack
includeProperties
protected final boolean includeProperties
propertyIterator
protected PropertyIterator propertyIterator
FilterContentPackage.FilteringIterator
public FilterContentPackage.FilteringIterator(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 RepositoryException
- Throws:
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-2008 The Apache Software Foundation. All Rights Reserved.