it.uniroma2.art.owlart.utilities
Class RDFIterators.RDFListIterator

java.lang.Object
  extended by it.uniroma2.art.owlart.navigation.RDFIteratorImpl<ARTNode>
      extended by 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

Constructor Summary
RDFIterators.RDFListIterator(OWLModel model, ARTResource list, boolean inference, ARTResource... graphs)
           
 
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 it.uniroma2.art.owlart.navigation.RDFIteratorImpl
hasNext, next, remove
 
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
 

Constructor Detail

RDFIterators.RDFListIterator

public RDFIterators.RDFListIterator(OWLModel model,
                                    ARTResource list,
                                    boolean inference,
                                    ARTResource... graphs)
                             throws ModelAccessException
Throws:
ModelAccessException
Method Detail

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.