public class TsdsDataSourceFactory extends AbstractDataSourceFactory implements DataSourceFactory
Constructor and Description |
---|
TsdsDataSourceFactory() |
Modifier and Type | Method and Description |
---|---|
<T> T |
getCapability(java.lang.Class<T> clazz)
return additional tools for creating valid URIs, such as TimeSeriesBrowse.
|
java.util.List<CompletionContext> |
getCompletions(CompletionContext cc,
ProgressMonitor mon)
return a list of context-sensitive completions.
|
DataSource |
getDataSource(java.net.URI uri)
return a dataSource for the url
|
boolean |
isFileResource()
true if the data source is based on files.
|
boolean |
reject(java.lang.String surl,
java.util.List<java.lang.String> problems,
ProgressMonitor mon)
quick check to see that an uri looks acceptable.
|
getDescription, supportsDiscovery
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription, supportsDiscovery
public DataSource getDataSource(java.net.URI uri) throws java.lang.Exception
DataSourceFactory
getDataSource
in interface DataSourceFactory
getDataSource
in class AbstractDataSourceFactory
uri
- the URIjava.lang.Exception
- any exception may occur.public java.util.List<CompletionContext> getCompletions(CompletionContext cc, ProgressMonitor mon) throws java.lang.Exception
DataSourceFactory
getCompletions
in interface DataSourceFactory
getCompletions
in class AbstractDataSourceFactory
cc
- the context for the completion.mon
- a progress monitor, for example to monitor a file download.java.lang.Exception
public boolean reject(java.lang.String surl, java.util.List<java.lang.String> problems, ProgressMonitor mon)
DataSourceFactory
reject
in interface DataSourceFactory
reject
in class AbstractDataSourceFactory
surl
- the uri.problems
- list to which problems should be added. TODO: human readable or PROB_TIMERANGE?mon
- a progress monitor, for example to monitor a file download.public <T> T getCapability(java.lang.Class<T> clazz)
DataSourceFactory
getCapability
in interface DataSourceFactory
getCapability
in class AbstractDataSourceFactory
clazz
- the class, such as org.autoplot.datasource.capability.TimeSeriesBrowsepublic boolean isFileResource()
DataSourceFactory
isFileResource
in interface DataSourceFactory
isFileResource
in class AbstractDataSourceFactory