org.jscience.ml.gml.dom
Class PropertyIteratorImpl

java.lang.Object
  extended by org.jscience.ml.gml.dom.PropertyIteratorImpl
All Implemented Interfaces:
java.util.Iterator, PropertyIterator

public class PropertyIteratorImpl
extends java.lang.Object
implements PropertyIterator

A sample implementation of the PropertyIterator interface.


Constructor Summary
protected PropertyIteratorImpl(java.util.Iterator iterator)
          Constructs this iterator as a type-safe wrapper around another iterator.
 
Method Summary
 boolean hasNext()
          DOCUMENT ME!
 java.lang.Object next()
          DOCUMENT ME!
 Property nextProperty()
          Convenience method that makes this iterator type-safe.
 void remove()
          DOCUMENT ME!
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PropertyIteratorImpl

protected PropertyIteratorImpl(java.util.Iterator iterator)
Constructs this iterator as a type-safe wrapper around another iterator.

Parameters:
iterator - DOCUMENT ME!
Method Detail

nextProperty

public Property nextProperty()
Convenience method that makes this iterator type-safe.

Specified by:
nextProperty in interface PropertyIterator
Returns:
DOCUMENT ME!

hasNext

public boolean hasNext()
DOCUMENT ME!

Specified by:
hasNext in interface java.util.Iterator
Returns:
DOCUMENT ME!

next

public java.lang.Object next()
DOCUMENT ME!

Specified by:
next in interface java.util.Iterator
Returns:
DOCUMENT ME!

remove

public void remove()
DOCUMENT ME!

Specified by:
remove in interface java.util.Iterator