it.uniroma2.art.owlart.models.impl
Class ObjectsOfStatementsIterator

java.lang.Object
  extended by it.uniroma2.art.owlart.models.impl.ObjectsOfStatementsIterator
All Implemented Interfaces:
ARTNodeIterator, RDFIterator<ARTNode>, java.util.Iterator<ARTNode>

public class ObjectsOfStatementsIterator
extends java.lang.Object
implements ARTNodeIterator

an wrapping iterator class which extracts objects from statement iterators

Author:
Armando Stellato

Constructor Summary
ObjectsOfStatementsIterator(ARTStatementIterator statIt)
           
 
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 hasNext()
           
 ARTNode next()
           
 void remove()
           
 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
 

Constructor Detail

ObjectsOfStatementsIterator

public ObjectsOfStatementsIterator(ARTStatementIterator statIt)
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

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

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

hasNext

public boolean hasNext()
Specified by:
hasNext in interface java.util.Iterator<ARTNode>

next

public ARTNode next()
Specified by:
next in interface java.util.Iterator<ARTNode>

remove

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


Copyright © 2011 ART Group, University of Rome, Tor Vergata. All Rights Reserved.