## org.autoplot.datasource.jython.JythonDataSourceFactory

## JythonDataSourceFactory( )

## addExeceptionListener

addExeceptionListener( java.beans.ExceptionListener listener ) → void

provide the script panel with a method for getting errors when they occur, so it can mark where they have occurred.

### Parameters

listener - an ExceptionListener

### Returns:

void (returns nothing)
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getCapability

getCapability( java.lang.Class clazz ) → Object

### Parameters

clazz - a java.lang.Class

### Returns:

java.lang.Object
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getCompletions

getCompletions( org.autoplot.datasource.CompletionContext cc, ProgressMonitor mon ) → java.util.List

### Parameters

cc - a CompletionContext
mon - a ProgressMonitor

### Returns:

java.util.List
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## getDataSource

getDataSource( java.net.URI uri ) → org.autoplot.datasource.DataSource

### Parameters

uri - an URI

### Returns:

org.autoplot.datasource.DataSource
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## jydsHasLocalReferences

jydsHasLocalReferences( java.net.URI uri ) → boolean

this is a non-trivial problem, and for now we will assume any .jyds has local references and therefore cannot be run from a remote .vap file from the server. Further, it's probably better to look into creating a sandboxed thread on which to run the script.

### Parameters

uri - an URI

### Returns:

true if the jyds has local resource references
[search for examples] [view on GitHub] [view on old javadoc] [view source]

## reject

reject( String surl, java.util.List problems, ProgressMonitor mon ) → boolean

Reject when: - the URI doesn't contain a timerange but the data source has TimeSeriesBrowse

### Parameters

surl - a String
problems - a java.util.List
mon - a ProgressMonitor

### Returns:

a boolean
[search for examples] [view on GitHub] [view on old javadoc] [view source]