de.hpi.fgis.dude.datasource
Class BibtexSource.BibtexSourceIterator

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

protected class BibtexSource.BibtexSourceIterator
extends AbstractDataSource.AbstractDataSourceIterator<BibtexSource>

BibtexSourceIterator is used for generating DuDeObjects out of BibtexSources.

Author:
Matthias Pohl

Field Summary
 
Fields inherited from class de.hpi.fgis.dude.datasource.AbstractDataSource.AbstractDataSourceIterator
dataSource
 
Constructor Summary
protected BibtexSource.BibtexSourceIterator(BibtexSource source)
          Initializes a BibtexSourceIterator using the passed BibtexSource.
 
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

BibtexSource.BibtexSourceIterator

protected BibtexSource.BibtexSourceIterator(BibtexSource source)
Initializes a BibtexSourceIterator using the passed BibtexSource.

Parameters:
source - The source of which the data shall be extracted.
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<BibtexSource>
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.