org.semanticdesktop.aperture.datasource.impl
Class DataSourceRegistryImpl

java.lang.Object
  extended by org.semanticdesktop.aperture.datasource.impl.DataSourceRegistryImpl
All Implemented Interfaces:
DataSourceRegistry
Direct Known Subclasses:
DefaultDataSourceRegistry

public class DataSourceRegistryImpl
extends Object
implements DataSourceRegistry

A trivial default implementation of the DataSourceRegistry interface.


Constructor Summary
DataSourceRegistryImpl()
          Default constructor
 
Method Summary
 void add(DataSourceFactory factory)
          Adds a DataSourceFactory to this registry.
 Set get(URI type)
          Returns all DataSourceFactories that support the specified DataSource type.
 Set getAll()
          Returns all DataSourceFactories registered in this DataSourceRegistry.
 void getDataSourceOntologyAndDescriptions(Model model)
          Generates a graph containing the datasource ontology (the vocabulary used to configure data sources), the sourceformat ontology (vocabulary used to specify widgets for the UI) and descriptions of data source types registered within this registry.
 void remove(DataSourceFactory factory)
          Removes a DataSourceFactory from this registry.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataSourceRegistryImpl

public DataSourceRegistryImpl()
Default constructor

Method Detail

add

public void add(DataSourceFactory factory)
Description copied from interface: DataSourceRegistry
Adds a DataSourceFactory to this registry.

Specified by:
add in interface DataSourceRegistry

remove

public void remove(DataSourceFactory factory)
Description copied from interface: DataSourceRegistry
Removes a DataSourceFactory from this registry.

Specified by:
remove in interface DataSourceRegistry

get

public Set get(URI type)
Description copied from interface: DataSourceRegistry
Returns all DataSourceFactories that support the specified DataSource type.

Specified by:
get in interface DataSourceRegistry
Returns:
A Set of DataSourceFactories whose supported types equal the specified type.

getAll

public Set getAll()
Description copied from interface: DataSourceRegistry
Returns all DataSourceFactories registered in this DataSourceRegistry.

Specified by:
getAll in interface DataSourceRegistry
Returns:
A Set of DataSourceFactory instances.

getDataSourceOntologyAndDescriptions

public void getDataSourceOntologyAndDescriptions(Model model)
Description copied from interface: DataSourceRegistry
Generates a graph containing the datasource ontology (the vocabulary used to configure data sources), the sourceformat ontology (vocabulary used to specify widgets for the UI) and descriptions of data source types registered within this registry. These descriptions use the Fresnel Display Vocabulary. Each one comprises a fresnel:Lens instance, with a list of all configuration properties needed by a crawler for this data source. Each configuration property has a fresnel:Format that specifies the widget that is to be used in the user interface, the widgets are chosen from those specified in the Aperture sourceformat ontology. This graph is stored in the provided model.

Specified by:
getDataSourceOntologyAndDescriptions in interface DataSourceRegistry


Copyright © 2010 Aperture Development Team. All Rights Reserved.