org.openrdf.sesame.sailimpl.rdbms.iterators
Class RdbmsNamespaceIterator

java.lang.Object
  extended byorg.openrdf.sesame.sailimpl.rdbms.iterators.RdbmsNamespaceIterator
All Implemented Interfaces:
NamespaceIterator

public class RdbmsNamespaceIterator
extends Object
implements NamespaceIterator

A NamespaceIterator that returns namespaces from a cache.

Version:
$Revision: 1.4.4.2 $
Author:
Peter van 't Hof, Arjohn Kampman

Constructor Summary
RdbmsNamespaceIterator(List namespaces)
          Constructor.
 
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.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RdbmsNamespaceIterator

public RdbmsNamespaceIterator(List namespaces)
Constructor.

Parameters:
namespaces - cache from which namespaces are returned
Method Detail

hasNext

public boolean hasNext()
Description copied from interface: NamespaceIterator
Checks whether there are any more namespaces available.

Specified by:
hasNext in interface NamespaceIterator
Returns:
true if there are more namespaces available, false otherwise.

next

public void next()
Description copied from interface: NamespaceIterator
Go to the next namespace.

Specified by:
next in interface NamespaceIterator

getPrefix

public String getPrefix()
Description copied from interface: NamespaceIterator
Gets the prefix of the current namespace.

Specified by:
getPrefix in interface NamespaceIterator
Returns:
prefix of namespace

getName

public String getName()
Description copied from interface: NamespaceIterator
Gets the name of the current namespace (i.e. it's URI).

Specified by:
getName in interface NamespaceIterator
Returns:
name of namespace

close

public void close()
Description copied from interface: NamespaceIterator
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.

Specified by:
close in interface NamespaceIterator


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