de.cau.cs.kieler.kex.model
Class ExampleCollector

java.lang.Object
  extended by de.cau.cs.kieler.kex.model.ExampleCollector
Direct Known Subclasses:
DBExampleCollector, PluginExampleCollector

public abstract class ExampleCollector
extends Object

Main class for an example collector.

Rating red

Constructor Summary
ExampleCollector()
           
 
Method Summary
abstract  Map<String,Example> getExamplePool()
          Returns the loaded examplePool.
 List<String> getExamplesAsStrings()
          Makes a String representation of examples.
abstract  SourceType getSourceType()
          Getter for SourceType.
abstract  void load()
          Loads the examples.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExampleCollector

public ExampleCollector()
Method Detail

load

public abstract void load()
Loads the examples.


getExamplePool

public abstract Map<String,Example> getExamplePool()
Returns the loaded examplePool.

Returns:
a Map with exampleId as key and example as value.

getSourceType

public abstract SourceType getSourceType()
Getter for SourceType. Every collector should have one.

Returns:
SourceType

getExamplesAsStrings

public List<String> getExamplesAsStrings()
Makes a String representation of examples.

Returns:
List of String