public final class DefaultDataSource extends Object implements DataSource
DataSource.
In general, most of the data sources can be encoded with this default implementation.Module: datasource-api
To use this in your app, include the following dependency in your POM:
<dependency>
<groupId>org.cytoscape</groupId>
<artifactId>datasource-api</artifactId>
</dependency>| Constructor and Description |
|---|
DefaultDataSource(String name,
String provider,
String description,
DataCategory category,
URL url)
Constructor for the default data source.
|
| Modifier and Type | Method and Description |
|---|---|
DataCategory |
getDataCategory()
DataCategory of this data. |
String |
getDescription()
Description for this data.
|
URL |
getLocation()
Location of this data file.
|
String |
getName()
Name of this data source
|
String |
getProvider()
Name of this data provider for this source.
|
public DefaultDataSource(String name, String provider, String description, DataCategory category, URL url)
name - name of sourceprovider - provider name of data sourcedescription - description for this sourcecategory - category of dataurl - location of data file as URLpublic String getProvider()
DataSourcegetProvider in interface DataSourcepublic String getName()
DataSourcegetName in interface DataSourcepublic String getDescription()
DataSourcegetDescription in interface DataSourcepublic DataCategory getDataCategory()
DataSourceDataCategory of this data.getDataCategory in interface DataSourcepublic URL getLocation()
DataSourcegetLocation in interface DataSourceCopyright 2011 Cytoscape Consortium. All rights reserved.