com.ontimize.dms.jcr
Class JcrNodeIteratorImpl
java.lang.Object
com.ontimize.dms.jcr.JcrNodeIteratorImpl
- All Implemented Interfaces:
- JcrNodeIterator, java.util.Iterator
public class JcrNodeIteratorImpl
- extends java.lang.Object
- implements JcrNodeIterator
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
node
protected JcrNode node
iterator
protected NodeIterator iterator
absolute
protected boolean absolute
JcrNodeIteratorImpl
public JcrNodeIteratorImpl(JcrNode node,
NodeIterator iterator)
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