de.hpi.fgis.dude.datasource
Class XMLSource.XMLSourceIterator
java.lang.Object
de.hpi.fgis.dude.util.AbstractIterator<DuDeObject>
de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator<XMLSource>
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 DuDeObject
s out of XMLSource
s.
- Author:
- Matthias Pohl
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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.
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.