public class Das2ServerDataSourceFactory extends java.lang.Object implements DataSourceFactory
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
PROB_DS |
static java.lang.String |
PROB_TIMERANGE |
Constructor and Description |
---|
Das2ServerDataSourceFactory() |
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
|
java.lang.String |
getDescription()
return a short description of the factory, or empty string.
|
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)
Indicate if a URI is acceptable.
|
boolean |
supportsDiscovery()
mark that this source has an editor that allows discovery of data,
and the GUI can be entered with "vap+ext:" This must be consistent
with the reject method of the editor.
|
public static final java.lang.String PROB_DS
public static final java.lang.String PROB_TIMERANGE
public DataSource getDataSource(java.net.URI uri) throws java.lang.Exception
DataSourceFactory
getDataSource
in interface DataSourceFactory
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
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)
vap+das2server:http://www-pw.physics.uiowa.edu/das/das2Server?galileo/pws/EDPosition.dsdf&timerange=2001-10-17
reject
in interface DataSourceFactory
surl
- problems
- mon
- public boolean supportsDiscovery()
DataSourceFactory
supportsDiscovery
in interface DataSourceFactory
public boolean isFileResource()
DataSourceFactory
isFileResource
in interface DataSourceFactory
public <T> T getCapability(java.lang.Class<T> clazz)
DataSourceFactory
getCapability
in interface DataSourceFactory
clazz
- the class, such as org.autoplot.datasource.capability.TimeSeriesBrowsepublic java.lang.String getDescription()
DataSourceFactory
getDescription
in interface DataSourceFactory