org.apache.jackrabbit.commons.packaging
Class FilterContentPackage.FilteringIterator

java.lang.Object
  extended by 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
protected  List 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 nodeIteratorStack
           
protected  int pathIndex
           
protected  PropertyIterator propertyIterator
           
protected  Session session
           
 
Constructor Summary
FilterContentPackage.FilteringIterator(Session session, List contentList, boolean includeProperties)
          Creates a new tree walker that uses the given filter as include and traversal filter.
 
Method Summary
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
 

Field Detail

content

protected final List 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 nodeIteratorStack

includeProperties

protected final boolean includeProperties

propertyIterator

protected PropertyIterator propertyIterator
Constructor Detail

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.
Method Detail

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-2010 The Apache Software Foundation. All Rights Reserved.