com.hp.hpl.mesa.rdf.jena.common
Class  NsIteratorImpl
java.lang.Object
  |
  +--com.hp.hpl.mesa.rdf.jena.common.NsIteratorImpl
- All Implemented Interfaces: 
 - NsIterator
 
- public class NsIteratorImpl
- extends java.lang.Object
- implements NsIterator
   
An NsIterator implementation
- Version: 
 - Release='$Name:  $' Revision='$Revision: 1.2 $' Date='$Date: 2001/09/23 17:52:09 $'
 
- Author: 
 - bwm
 
| 
Constructor Summary | 
NsIteratorImpl(java.util.Iterator iter,
               java.lang.Object o)
 
          Creates new NsIteratorImpl | 
 
| 
Method Summary | 
 void | 
close()
 
          Terminate the iteration and free up resources. | 
 boolean | 
hasNext()
 
          Determine if there any more values in the iteration. | 
 java.lang.String | 
next()
 
          Return the next namespace name of the iteration. | 
 void | 
remove()
 
          Unsupported Operation. | 
 
| Methods inherited from class java.lang.Object | 
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
 
NsIteratorImpl
public NsIteratorImpl(java.util.Iterator iter,
                      java.lang.Object o)
- Creates new NsIteratorImpl
 
hasNext
public boolean hasNext()
                throws RDFException
- Description copied from interface: 
NsIterator 
- Determine if there any more values in the iteration.
- Specified by: 
 hasNext in interface NsIterator
 
- Following copied from interface: 
com.hp.hpl.mesa.rdf.jena.model.NsIterator 
- Returns:
 - true if and only if there are more values available
 from the iteration.
 - Throws:
 RDFException - Generic RDF exception.
 
 
next
public java.lang.String next()
                      throws java.util.NoSuchElementException,
                             RDFException
- Description copied from interface: 
NsIterator 
- Return the next namespace name of the iteration.
- Specified by: 
 next in interface NsIterator
 
- Following copied from interface: 
com.hp.hpl.mesa.rdf.jena.model.NsIterator 
- Returns:
 - The next name space URI from the iteration.
 - Throws:
 java.util.NoSuchElementException - if there are no more to be returned.RDFException - Generic RDF exception.
 
 
remove
public void remove()
            throws java.util.NoSuchElementException,
                   RDFException
- Description copied from interface: 
NsIterator 
- Unsupported Operation.
- Specified by: 
 remove in interface NsIterator
 
- Following copied from interface: 
com.hp.hpl.mesa.rdf.jena.model.NsIterator 
- Throws:
 java.util.NoSuchElementException -  RDFException -  
 
 
close
public void close()
           throws RDFException
- Description copied from interface: 
NsIterator 
- Terminate the iteration and free up resources.
 
Some implementations, e.g. on relational databases, hold resources while
 the iterator still exists.  These will normally be freed when the iteration
 completes.  However, if an application wishes to ensure they are freed without
 completing the iteration, this method should be called.
- Specified by: 
 close in interface NsIterator
 
- Following copied from interface: 
com.hp.hpl.mesa.rdf.jena.model.NsIterator 
- Throws:
 RDFException - Generic RDF exception.
 
 
Copyright © 2001 Hewlett-Packard. All Rights Reserved.