de.cau.cs.kieler.kex.model.database
Class DBExampleCollector

java.lang.Object
  extended by de.cau.cs.kieler.kex.model.ExampleCollector
      extended by de.cau.cs.kieler.kex.model.database.DBExampleCollector

public class DBExampleCollector
extends ExampleCollector

this is an example for extending KEX with online examples.

Rating red

Constructor Summary
DBExampleCollector()
          Creates a new DBExampleCollector.
 
Method Summary
 List<Category> getCategories()
          Getter for categories.
static Example getExample(String exampleTitle)
          searches an example for a examle title.
 Map<String,Example> getExamplePool()
          Returns the loaded examplePool.
 SourceType getSourceType()
          Getter for SourceType.
 void load()
          Loads the examples.
 
Methods inherited from class de.cau.cs.kieler.kex.model.ExampleCollector
getExamplesAsStrings
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DBExampleCollector

public DBExampleCollector()
Creates a new DBExampleCollector.

Method Detail

getExamplePool

public Map<String,Example> getExamplePool()
Description copied from class: ExampleCollector
Returns the loaded examplePool.

Specified by:
getExamplePool in class ExampleCollector
Returns:
a Map with exampleId as key and example as value.

load

public void load()
Description copied from class: ExampleCollector
Loads the examples.

Specified by:
load in class ExampleCollector

getExample

public static Example getExample(String exampleTitle)
searches an example for a examle title.

Parameters:
exampleTitle - , String
Returns:
Example

getCategories

public List<Category> getCategories()
Getter for categories.

Returns:
List of String

getSourceType

public SourceType getSourceType()
Description copied from class: ExampleCollector
Getter for SourceType. Every collector should have one.

Specified by:
getSourceType in class ExampleCollector
Returns:
SourceType