Humboldt Alignment Editor 2.5.0

eu.esdihumboldt.hale.io.gml.reader.internal
Class GmlInstanceCollection.InstanceIterator

java.lang.Object
  extended by eu.esdihumboldt.hale.io.gml.reader.internal.GmlInstanceCollection.InstanceIterator
All Implemented Interfaces:
ResourceIterator<Instance>, Closeable, Iterator<Instance>
Enclosing class:
GmlInstanceCollection

public class GmlInstanceCollection.InstanceIterator
extends Object
implements ResourceIterator<Instance>

Iterates over Instances in an XML/GML stream


Constructor Summary
GmlInstanceCollection.InstanceIterator()
          Default constructor
 
Method Summary
 void close()
          Dispose the iterator.
 boolean hasNext()
           
 Instance next()
           
 TypeDefinition nextType()
          Get the type of the next instance.
 void remove()
           
 void skip()
          Skip the next object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GmlInstanceCollection.InstanceIterator

public GmlInstanceCollection.InstanceIterator()
Default constructor

Method Detail

hasNext

public boolean hasNext()
Specified by:
hasNext in interface Iterator<Instance>
See Also:
Iterator.hasNext()

next

public Instance next()
Specified by:
next in interface Iterator<Instance>
See Also:
Iterator.next()

nextType

public TypeDefinition nextType()
Get the type of the next instance. Must be called after hasNext() but before next() or skip()

Returns:
the type of the next instance

skip

public void skip()
Skip the next object. Can be used instead of next()


remove

public void remove()
Specified by:
remove in interface Iterator<Instance>
See Also:
Iterator.remove()

close

public void close()
Description copied from interface: ResourceIterator
Dispose the iterator. After calling this method Iterator.next() may not be called.

Specified by:
close in interface ResourceIterator<Instance>
Specified by:
close in interface Closeable
See Also:
ResourceIterator.close()

Humboldt Alignment Editor 2.5.0

Build 2012-12-03_12-30-59
Revision 9d2dd4b0318cda9f1393b1ddd390f7f792d70a2d