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

java.lang.Object
  extended by it.uniroma2.art.owlart.navigation.RDFIteratorImpl<ARTResource>
      extended by it.uniroma2.art.owlart.models.impl.ResourceIteratorFilteringNodeIterator
All Implemented Interfaces:
ARTResourceIterator, RDFIterator<ARTResource>, java.util.Iterator<ARTResource>

public class ResourceIteratorFilteringNodeIterator
extends RDFIteratorImpl<ARTResource>
implements ARTResourceIterator

retrieves only those nodes which are resources

Author:
Armando Stellato

Constructor Summary
ResourceIteratorFilteringNodeIterator(ARTNodeIterator resIt)
           
 
Method Summary
 void close()
          closes the iterator and release resources
 ARTResource 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

ResourceIteratorFilteringNodeIterator

public ResourceIteratorFilteringNodeIterator(ARTNodeIterator resIt)
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<ARTResource>
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<ARTResource>
Returns:
Throws:
ModelAccessException

getNext

public ARTResource 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<ARTResource>
Returns:
Throws:
ModelAccessException


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