org.gcube.datatransformation.datatransformationlibrary.datahandlers
Interface DataSource

All Superinterfaces:
ContentTypeDataSource, DataHandler
All Known Subinterfaces:
DataBridge
All Known Implementing Classes:
FilterDataBridge, REFDataBridge

public interface DataSource
extends DataHandler, ContentTypeDataSource

Author:
Dimitris Katris, NKUA

The DataSource interface is implemented by all classes capable for fetching DataElements from the respective source.

Caution: Sources must also define a constructor (String input, Parameter[] inputParameters). This constructor is used by the service to instantiate the DataSource.


Method Summary
 boolean hasNext()
          Returns true if the DataSource has more DataElements.
 DataElement next()
          Returns the next element of the DataSource.
 
Methods inherited from interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.DataHandler
close, isClosed
 
Methods inherited from interface org.gcube.datatransformation.datatransformationlibrary.datahandlers.ContentTypeDataSource
nextContentType
 

Method Detail

hasNext

boolean hasNext()
Returns true if the DataSource has more DataElements.

Specified by:
hasNext in interface ContentTypeDataSource
Returns:
true if the DataSource has more elements.

next

DataElement next()
Returns the next element of the DataSource.

Returns:
the next element of the DataSource.


Copyright © 2013. All Rights Reserved.