com.hp.hpl.jena.rdf.model
Interface NsIterator
- All Superinterfaces:
- com.hp.hpl.jena.util.iterator.ClosableIterator<java.lang.String>, com.hp.hpl.jena.util.iterator.ExtendedIterator<java.lang.String>, java.util.Iterator<java.lang.String>
public interface NsIterator
- extends com.hp.hpl.jena.util.iterator.ExtendedIterator<java.lang.String>
An iterator which returns namespace URI's.
RDF iterators are standard Java iterators, except that they
have an extra method that returns a specifically typed object,
in this case a String representing a namespace URI, and have
a close()
method that should be called to free
resources if the application does not complete the iteration.
- Version:
- Release='$Name: $' Revision='$Revision: 1.1 $' Date='$Date: 2009/06/29 08:55:38 $'
- Author:
- bwm
Method Summary |
java.lang.String |
nextNs()
Return the next namespace name of the iteration. |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ExtendedIterator |
andThen, filterDrop, filterKeep, mapWith, removeNext, toList, toSet |
Methods inherited from interface com.hp.hpl.jena.util.iterator.ClosableIterator |
close |
Methods inherited from interface java.util.Iterator |
hasNext, next, remove |
nextNs
java.lang.String nextNs()
- Return the next namespace name of the iteration.
- Returns:
- The next name space URI from the iteration.
- Throws:
NoSuchElementException
- if there are no more to be returned.
Copyright © 2000, 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Hewlett-Packard Development Company, LP