de.hpi.fgis.dude.datasource
Class XMLSource.XMLSourceIterator

java.lang.Object
  extended by de.hpi.fgis.dude.util.AbstractIterator<DuDeObject>
      extended by de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator<XMLSource>
          extended by de.hpi.fgis.dude.datasource.XMLSource.XMLSourceIterator
All Implemented Interfaces:
Iterator<DuDeObject>
Enclosing class:
XMLSource

protected class XMLSource.XMLSourceIterator
extends AbstractDataSource.AbstractDataSourceIterator<XMLSource>

XMLSourceIterator is used for generating DuDeObjects out of XMLSources.

Author:
Matthias Pohl

Field Summary
 
Fields inherited from class de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator
dataSource
 
Constructor Summary
protected XMLSource.XMLSourceIterator(XMLSource source)
          Initializes a XMLSourceIterator using the passed XMLSource.
 
Method Summary
protected  JsonRecord loadNextRecord()
          Returns the data of the next object.
 
Methods inherited from class de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator
addAttributeValue, loadNextElement, setAttributeValue
 
Methods inherited from class de.hpi.fgis.dude.util.AbstractIterator
hasNext, next, remove
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLSource.XMLSourceIterator

protected XMLSource.XMLSourceIterator(XMLSource source)
                               throws XMLStreamException
Initializes a XMLSourceIterator using the passed XMLSource.

Parameters:
source - The source of which the data shall be extracted.
Throws:
XMLStreamException - If an error occurs while instantiating a new XML reader.
Method Detail

loadNextRecord

protected JsonRecord loadNextRecord()
                             throws ExtractionFailedException
Description copied from class: AbstractDataSource.AbstractDataSourceIterator
Returns the data of the next object. This method will be called within AbstractDataSource.AbstractDataSourceIterator.loadNextElement().

Specified by:
loadNextRecord in class AbstractDataSource.AbstractDataSourceIterator<XMLSource>
Returns:
The data record of the next object.
Throws:
ExtractionFailedException - If an error occurs while extracting the data.


Copyright © 2011 Hasso Plattner Institute - Chair of Information Systems. All Rights Reserved.