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()
DataSource
getProvider
in interface DataSource
public String getName()
DataSource
getName
in interface DataSource
public String getDescription()
DataSource
getDescription
in interface DataSource
public DataCategory getDataCategory()
DataSource
DataCategory
of this data.getDataCategory
in interface DataSource
public URL getLocation()
DataSource
getLocation
in interface DataSource
Copyright 2011-2015 Cytoscape Consortium. All rights reserved.