com.hp.hpl.mesa.rdf.jena.common
Class ContNodeIteratorImpl
java.lang.Object
|
+--com.hp.hpl.mesa.rdf.jena.common.ContNodeIteratorImpl
- All Implemented Interfaces:
- NodeIterator
- public class ContNodeIteratorImpl
- extends java.lang.Object
- implements NodeIterator
An internal class not normally of interest to application developers.
An iterator over the nodes in a container.
- Version:
- Release='$Name: $' Revision='$Revision: 1.2 $' Date='$Date: 2001/09/23 17:51:24 $'
- Author:
- bwm
Method Summary |
void |
close()
Terminate the iteration and free up resources. |
boolean |
hasNext()
Determine if there any more values in the iteration. |
RDFNode |
next()
Return the next RDFNode of the iteration. |
void |
remove()
Unsupported Operation. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ContNodeIteratorImpl
public ContNodeIteratorImpl(java.util.Iterator iterator,
java.lang.Object object,
Container cont)
throws RDFException
- Creates new ContNodeIteratorImpl
hasNext
public boolean hasNext()
throws RDFException
- Description copied from interface:
NodeIterator
- Determine if there any more values in the iteration.
- Specified by:
hasNext
in interface NodeIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.NodeIterator
- Returns:
- true if and only if there are more values available
from the iteration.
- Throws:
RDFException
- Generic RDF exception.
next
public RDFNode next()
throws java.util.NoSuchElementException,
RDFException
- Description copied from interface:
NodeIterator
- Return the next RDFNode of the iteration.
- Specified by:
next
in interface NodeIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.NodeIterator
- Returns:
- The next RDFNode from the iteration.
- Throws:
java.util.NoSuchElementException
- if there are no more nodes to be returned.RDFException
- Generic RDF exception.
remove
public void remove()
throws java.util.NoSuchElementException,
RDFException
- Description copied from interface:
NodeIterator
- Unsupported Operation.
- Specified by:
remove
in interface NodeIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.NodeIterator
- Throws:
java.util.NoSuchElementException
- RDFException
-
close
public void close()
throws RDFException
- Description copied from interface:
NodeIterator
- Terminate the iteration and free up resources.
Some implementations, e.g. on relational databases, hold resources while
the iterator still exists. These will normally be freed when the iteration
completes. However, if an application wishes to ensure they are freed without
completing the iteration, this method should be called.
- Specified by:
close
in interface NodeIterator
- Following copied from interface:
com.hp.hpl.mesa.rdf.jena.model.NodeIterator
- Throws:
RDFException
- Generic RDF exception.
Copyright © 2001 Hewlett-Packard. All Rights Reserved.