info.magnolia.jcr.iterator
Class WrappingNodeIterator

java.lang.Object
  extended by info.magnolia.jcr.iterator.DelegatingNodeIterator
      extended by info.magnolia.jcr.iterator.WrappingNodeIterator
All Implemented Interfaces:
Iterator, javax.jcr.NodeIterator, javax.jcr.RangeIterator

public class WrappingNodeIterator
extends DelegatingNodeIterator

Node iterator wrapping all returned nodes using provided node wrapper.


Constructor Summary
WrappingNodeIterator(javax.jcr.NodeIterator iterator, ContentDecorator decorator)
           
WrappingNodeIterator(javax.jcr.NodeIterator iterator, NodeWrapperFactory wrapperFactory)
          Deprecated. since 4.5.9 use WrappingNodeIterator(NodeIterator, ContentDecorator)
 
Method Summary
 Object next()
           
 javax.jcr.Node nextNode()
           
protected  javax.jcr.Node wrapNode(javax.jcr.Node node)
           
 
Methods inherited from class info.magnolia.jcr.iterator.DelegatingNodeIterator
getPosition, getSize, hasNext, remove, skip
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

WrappingNodeIterator

public WrappingNodeIterator(javax.jcr.NodeIterator iterator,
                            ContentDecorator decorator)

WrappingNodeIterator

public WrappingNodeIterator(javax.jcr.NodeIterator iterator,
                            NodeWrapperFactory wrapperFactory)
Deprecated. since 4.5.9 use WrappingNodeIterator(NodeIterator, ContentDecorator)

Method Detail

next

public Object next()
Specified by:
next in interface Iterator
Overrides:
next in class DelegatingNodeIterator

nextNode

public javax.jcr.Node nextNode()
Specified by:
nextNode in interface javax.jcr.NodeIterator
Overrides:
nextNode in class DelegatingNodeIterator

wrapNode

protected javax.jcr.Node wrapNode(javax.jcr.Node node)


Copyright © 2003-2014 Magnolia International Ltd.. All Rights Reserved.