org.semanticdesktop.aperture.datasource.base
Class DataSourceBase

java.lang.Object
  extended by org.semanticdesktop.aperture.datasource.base.DataSourceBase
All Implemented Interfaces:
DataSource
Direct Known Subclasses:
BibsonomyDataSource, DeliciousDataSource, DomainBoundableDataSource, FlickrDataSource, IcalDataSource, OutlookDataSource, SambaDataSource, ThunderbirdAddressbookDataSource

public abstract class DataSourceBase
extends Object
implements DataSource

A trivial default implementation of the DataSource interface.


Constructor Summary
DataSourceBase()
           
DataSourceBase(RDFContainer configuration)
           
 
Method Summary
 void dispose()
          Disposes this DataSource.
 String getComment()
           
 RDFContainer getConfiguration()
          Gets the RDF model containing the configuration of this DataSource.
 URI getID()
          Gets the id of this data source.
 String getName()
          Gets the name of this data source.
 Integer getTimeout()
           
 void setComment(String comment)
           
 void setConfiguration(RDFContainer configuration)
          Sets the RDF model containing the configuration of this DataSource.
 void setName(String name)
          Sets the name of this data source.
 void setTimeout(int timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.semanticdesktop.aperture.datasource.DataSource
getType
 

Constructor Detail

DataSourceBase

public DataSourceBase()

DataSourceBase

public DataSourceBase(RDFContainer configuration)
Method Detail

getID

public URI getID()
Description copied from interface: DataSource
Gets the id of this data source.

Specified by:
getID in interface DataSource
Returns:
A URI identifier for the data source.

getName

public String getName()
Description copied from interface: DataSource
Gets the name of this data source.

Specified by:
getName in interface DataSource
Returns:
A descriptive name for the data source.

setName

public void setName(String name)
Description copied from interface: DataSource
Sets the name of this data source.

Specified by:
setName in interface DataSource
Parameters:
name - A descriptive name for the data source.

getComment

public String getComment()

setComment

public void setComment(String comment)

getTimeout

public Integer getTimeout()

setTimeout

public void setTimeout(int timeout)

getConfiguration

public RDFContainer getConfiguration()
Description copied from interface: DataSource
Gets the RDF model containing the configuration of this DataSource. The returned RDFContainer can be modified in order to update the configuration.

Specified by:
getConfiguration in interface DataSource
Returns:
A mutable RDFContainer, or 'null' when the configuration container has not been set yet.

setConfiguration

public void setConfiguration(RDFContainer configuration)
Description copied from interface: DataSource
Sets the RDF model containing the configuration of this DataSource. The specified RDFContainer is expected to be mutable.

Specified by:
setConfiguration in interface DataSource
Parameters:
configuration - A mutable RDFContainer, or 'null' when the DataSource's configuration needs to be temporarily unset.

dispose

public void dispose()
Description copied from interface: DataSource
Disposes this DataSource. This method disposes the underlying configuration RDFContainer. May also perform any other cleanup operations necessary for this particular implementation.

Specified by:
dispose in interface DataSource


Copyright © 2010 Aperture Development Team. All Rights Reserved.