org.apache.sling.commons.testing.jcr
Class MockNodeIterator

java.lang.Object
  extended by org.apache.sling.commons.testing.jcr.MockNodeIterator
All Implemented Interfaces:
java.util.Iterator, javax.jcr.NodeIterator, javax.jcr.RangeIterator

public class MockNodeIterator
extends java.lang.Object
implements javax.jcr.NodeIterator


Constructor Summary
MockNodeIterator()
           
MockNodeIterator(javax.jcr.Node[] nodes)
           
 
Method Summary
 long getPosition()
           
 long getSize()
           
 boolean hasNext()
           
 java.lang.Object next()
           
 javax.jcr.Node nextNode()
           
 void remove()
           
 void skip(long skipNum)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MockNodeIterator

public MockNodeIterator()

MockNodeIterator

public MockNodeIterator(javax.jcr.Node[] nodes)
Method Detail

nextNode

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

getPosition

public long getPosition()
Specified by:
getPosition in interface javax.jcr.RangeIterator

getSize

public long getSize()
Specified by:
getSize in interface javax.jcr.RangeIterator

skip

public void skip(long skipNum)
Specified by:
skip in interface javax.jcr.RangeIterator

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator

next

public java.lang.Object next()
Specified by:
next in interface java.util.Iterator

remove

public void remove()
Specified by:
remove in interface java.util.Iterator


Copyright © 2007-2009. All Rights Reserved.