es.ucm.fdi.gaia.ontobridge.util
Class ToStringIterator<T>

java.lang.Object
  extended by es.ucm.fdi.gaia.ontobridge.util.ToStringIterator<T>
All Implemented Interfaces:
java.util.Iterator<T>

public class ToStringIterator<T>
extends java.lang.Object
implements java.util.Iterator<T>

Converts a JENA iterator into an String iterator. This class allows to convert between JENA classes and their corresponding URI representation in a very efficient way.

Author:
Juan A. Recio Garcia

Constructor Summary
ToStringIterator(java.util.Iterator iter)
          Constructor.
 
Method Summary
 boolean hasNext()
          Indicates if there are more elements
 T next()
          Returns the following element as an string.
 void remove()
          Removes an element of the collection
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ToStringIterator

public ToStringIterator(java.util.Iterator iter)
Constructor.

Parameters:
iter - wrapped iterator which elements are converted into strings.
Method Detail

hasNext

public boolean hasNext()
Indicates if there are more elements

Specified by:
hasNext in interface java.util.Iterator<T>

next

public T next()
Returns the following element as an string.

Specified by:
next in interface java.util.Iterator<T>

remove

public void remove()
Removes an element of the collection

Specified by:
remove in interface java.util.Iterator<T>