Class DataSourceBase
- java.lang.Object
-
- org.linkeddatafragments.datasource.DataSourceBase
-
- All Implemented Interfaces:
Closeable,AutoCloseable,IDataSource
- Direct Known Subclasses:
IndexDataSource,JenaTDBDataSource,RDFServiceDataSource
public abstract class DataSourceBase extends Object implements IDataSource
The base class for anIDataSource- Author:
- Miel Vander Sande, Bart Hanssens
-
-
Field Summary
Fields Modifier and Type Field Description protected StringdescriptionGet the datasource descriptionprotected StringtitleGet the datasource title
-
Constructor Summary
Constructors Constructor Description DataSourceBase(String title, String description)Create a base for aIDataSource
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidclose()StringgetDescription()Get the datasource descriptionStringgetTitle()Get the datasource title-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.linkeddatafragments.datasource.IDataSource
getRequestParser, getRequestProcessor
-
-
-
-
Constructor Detail
-
DataSourceBase
public DataSourceBase(String title, String description)
Create a base for aIDataSource- Parameters:
title- the datasource titledescription- the datasource description
-
-
Method Detail
-
getDescription
public String getDescription()
Get the datasource description- Specified by:
getDescriptionin interfaceIDataSource- Returns:
-
getTitle
public String getTitle()
Get the datasource title- Specified by:
getTitlein interfaceIDataSource- Returns:
-
close
public void close()
- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCloseable
-
-