org.openrdf.sesame.sail
Interface NamespaceIterator

All Known Implementing Classes:
MemNamespaceIterator, RdbmsNamespaceIterator

public interface NamespaceIterator

An iterator over namespaces that are stored in RDF Sails.

Version:
$Revision: 1.3.4.2 $
Author:
Arjohn Kampman

Method Summary
 void close()
          Closes the iterator and frees any resources that it uses (e.g.
 String getName()
          Gets the name of the current namespace (i.e. it's URI).
 String getPrefix()
          Gets the prefix of the current namespace.
 boolean hasNext()
          Checks whether there are any more namespaces available.
 void next()
          Go to the next namespace.
 

Method Detail

hasNext

public boolean hasNext()
Checks whether there are any more namespaces available.

Returns:
true if there are more namespaces available, false otherwise.

next

public void next()
Go to the next namespace.

Throws:
NoSuchElementException - If the iterator has no more results

getName

public String getName()
Gets the name of the current namespace (i.e. it's URI).

Returns:
name of namespace

getPrefix

public String getPrefix()
Gets the prefix of the current namespace.

Returns:
prefix of namespace

close

public void close()
Closes the iterator and frees any resources that it uses (e.g. connections to databases). Every NamespaceIterator should be properly closed when it has returned all of its namespaces, or when it is no longer needed.



Copyright © 2002-2006 Aduna BV, GNU LGPL License applies.