Ontimize Document Management 0.035EN

com.ontimize.dms.jcr
Class JcrNodeIteratorImpl

java.lang.Object
  extended by com.ontimize.dms.jcr.JcrNodeIteratorImpl
All Implemented Interfaces:
JcrNodeIterator, java.util.Iterator

public class JcrNodeIteratorImpl
extends java.lang.Object
implements JcrNodeIterator


Field Summary
protected  boolean absolute
           
protected  NodeIterator iterator
           
protected  JcrNode node
           
 
Constructor Summary
JcrNodeIteratorImpl(JcrNode node, NodeIterator iterator)
           
 
Method Summary
 java.lang.String getBase()
          Calculates the base path from the given node.
 JcrNode getNode()
           
 long getSize()
           
 boolean hasNext()
           
 boolean isAbsolute()
          Merges the base and the path of each node.
 java.lang.Object next()
           
 JcrNode nextNode()
           
 void remove()
           
 void setAbsolute(boolean absolute)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

node

protected JcrNode node

iterator

protected NodeIterator iterator

absolute

protected boolean absolute
Constructor Detail

JcrNodeIteratorImpl

public JcrNodeIteratorImpl(JcrNode node,
                           NodeIterator iterator)
Method Detail

getBase

public java.lang.String getBase()
                         throws RepositoryException
Description copied from interface: JcrNodeIterator

Calculates the base path from the given node.

Specified by:
getBase in interface JcrNodeIterator
Returns:
Throws:
RepositoryException

getNode

public JcrNode getNode()
Specified by:
getNode in interface JcrNodeIterator

hasNext

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

getSize

public long getSize()
Specified by:
getSize in interface JcrNodeIterator

next

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

nextNode

public JcrNode nextNode()
                 throws RepositoryException
Specified by:
nextNode in interface JcrNodeIterator
Throws:
RepositoryException

remove

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

isAbsolute

public boolean isAbsolute()
Description copied from interface: JcrNodeIterator

Merges the base and the path of each node.

Specified by:
isAbsolute in interface JcrNodeIterator
Returns:
If the path of each node includes the base and the path.

setAbsolute

public void setAbsolute(boolean absolute)
Specified by:
setAbsolute in interface JcrNodeIterator

Ontimize Document Management