org.apache.jackrabbit.decorator
Class DecoratingNodeIterator
java.lang.Object
org.apache.jackrabbit.decorator.DecoratingRangeIterator
org.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.
Method Summary |
Node |
nextNode()
Decorates and returns the next node from the underlying node iterator. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DecoratingNodeIterator
public DecoratingNodeIterator(DecoratorFactory factory,
Session session,
NodeIterator iterator)
- Creates a decorating node iterator.
- Parameters:
factory
- decorator factorysession
- decorated sessioniterator
- underlying node iterator
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.