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
DataSourceFactorygetDataSource in interface DataSourceFactoryuri - the URIjava.lang.Exception - any exception may occur.public java.util.List<CompletionContext> getCompletions(CompletionContext cc, ProgressMonitor mon) throws java.lang.Exception
DataSourceFactorygetCompletions in interface DataSourceFactorycc - the context for the completion.mon - a progress monitor, for example to monitor a file download.java.lang.Exceptionpublic 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 DataSourceFactorysurl - problems - mon - public boolean supportsDiscovery()
DataSourceFactorysupportsDiscovery in interface DataSourceFactorypublic boolean isFileResource()
DataSourceFactoryisFileResource in interface DataSourceFactorypublic <T> T getCapability(java.lang.Class<T> clazz)
DataSourceFactorygetCapability in interface DataSourceFactoryclazz - the class, such as org.autoplot.datasource.capability.TimeSeriesBrowsepublic java.lang.String getDescription()
DataSourceFactorygetDescription in interface DataSourceFactory