de.fhdarmstadt.fbi.dtree.testdata
Interface DataSource

All Known Implementing Classes:
GeneratorDataSource, ListDataSource

public interface DataSource

The data source defines an iterator over a set of test data.


Method Summary
 boolean hasNext()
          Checks, whether there is a next element in the datasource.
 TestData next()
          Returns the next element of the datasource.
 

Method Detail

hasNext

public boolean hasNext()
Checks, whether there is a next element in the datasource.

Returns:
true, if there is a next element, false otherwise.

next

public TestData next()
              throws java.util.NoSuchElementException
Returns the next element of the datasource. Subsequent calls to next return all element from the datasource.

Returns:
the next test data element.
Throws:
java.util.NoSuchElementException - if there is no next element.