org.apache.jackrabbit.decorator
Class DecoratingNodeIterator

java.lang.Object
  extended byorg.apache.jackrabbit.decorator.DecoratingRangeIterator
      extended byorg.apache.jackrabbit.decorator.DecoratingNodeIterator
All Implemented Interfaces:
Iterator, NodeIterator, RangeIterator

public class DecoratingNodeIterator
extends DecoratingRangeIterator
implements NodeIterator

Node iterator that decorates all iterated nodes. This utility class is used by the decorator layer to manage the decoration of all the nodes returned by an underlying node iterator. This class delegates all method calls to the underlying node iterator and uses the given decorator factory to decorate all the returned node instances.


Constructor Summary
DecoratingNodeIterator(DecoratorFactory factory, Session session, NodeIterator iterator)
          Creates a decorating node iterator.
 
Method Summary
 Node nextNode()
          Decorates and returns the next node from the underlying node iterator.
 
Methods inherited from class org.apache.jackrabbit.decorator.DecoratingRangeIterator
getPosition, getSize, hasNext, next, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.jcr.RangeIterator
getPosition, getSize, skip
 
Methods inherited from interface java.util.Iterator
hasNext, next, remove
 

Constructor Detail

DecoratingNodeIterator

public DecoratingNodeIterator(DecoratorFactory factory,
                              Session session,
                              NodeIterator iterator)
Creates a decorating node iterator.

Parameters:
factory - decorator factory
session - decorated session
iterator - underlying node iterator
Method Detail

nextNode

public Node nextNode()
Decorates and returns the next node from the underlying node iterator.

Specified by:
nextNode in interface NodeIterator
Returns:
next node (decorated)
See Also:
NodeIterator.nextNode()


Copyright © 2004-2005 . All Rights Reserved.