it.uniroma2.art.owlart.utilities
Class RDFIterators.RDFListIterator
java.lang.Object
it.uniroma2.art.owlart.navigation.RDFIteratorImpl<ARTNode>
it.uniroma2.art.owlart.utilities.RDFIterators.RDFListIterator
- All Implemented Interfaces:
- ARTNodeIterator, RDFIterator<ARTNode>, java.util.Iterator<ARTNode>
- Enclosing class:
- RDFIterators
public static class RDFIterators.RDFListIterator
- extends RDFIteratorImpl<ARTNode>
- implements ARTNodeIterator
This iterator class provides facilities for managing resources of type rdf:List It is already used in
OWL and SKOS methods such as OWLModelImpl.parseDataRange(ARTResource, ARTResource...)
- Author:
- Armando Stellato
Method Summary |
void |
close()
closes the iterator and release resources |
ARTNode |
getNext()
gets the next element of the iterator, and advances over the data stream (roughly
equivalent to traditional next() iterator method) |
boolean |
streamOpen()
tells if the data stream associated to this iterator is not empty (roughly
equivalent to traditional hasNext() iterator method) |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
RDFIterators.RDFListIterator
public RDFIterators.RDFListIterator(OWLModel model,
ARTResource list,
boolean inference,
ARTResource... graphs)
throws ModelAccessException
- Throws:
ModelAccessException
close
public void close()
throws ModelAccessException
- Description copied from interface:
RDFIterator
- closes the iterator and release resources
- Specified by:
close
in interface RDFIterator<ARTNode>
- Throws:
ModelAccessException
getNext
public ARTNode getNext()
throws ModelAccessException
- Description copied from interface:
RDFIterator
- gets the next element of the iterator, and advances over the data stream (roughly
equivalent to traditional
next()
iterator method)
- Specified by:
getNext
in interface RDFIterator<ARTNode>
- Returns:
-
- Throws:
ModelAccessException
streamOpen
public boolean streamOpen()
throws ModelAccessException
- Description copied from interface:
RDFIterator
- tells if the data stream associated to this iterator is not empty (roughly
equivalent to traditional
hasNext()
iterator method)
- Specified by:
streamOpen
in interface RDFIterator<ARTNode>
- Returns:
-
- Throws:
ModelAccessException
Copyright © 2013 ART Group, University of Rome, Tor Vergata. All Rights Reserved.