<h2>org.autoplot.datasource.CompletionContext</h2><p>models a part of a dataset's URI. This class is used to serve as both the input and output of completion engines. An incomplete completion context is passed in, and the engine returns a set of more complete contexts. This process could be repeated to define a tree, where the leaf nodes are valid datasets urls.</p> <h2>CompletionContext( )</h2> <p>create an empty completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/DataSourceFactory.html'>org.autoplot.datasource.DataSourceFactory</a> owner, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> implicitName, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> doc )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/DataSourceFactory.html'>org.autoplot.datasource.DataSourceFactory</a> owner, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> implicitName )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> doc )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> doc )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/DataSourceFactory.html'>org.autoplot.datasource.DataSourceFactory</a> owner, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> implicitName, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> doc )</h2> <p>Object containing a completion proposal.</p> <h2>CompletionContext( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> completable, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/DataSourceFactory.html'>org.autoplot.datasource.DataSourceFactory</a> owner, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> implicitName, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> label, <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> doc, boolean maybePlot )</h2> <p>Object containing a completion proposal.</p> <hr> <a name="CONTEXT_AUTOPLOT_SCHEME"></a> <h2>CONTEXT_AUTOPLOT_SCHEME</h2> <p></p> <hr> <a name="CONTEXT_FILESYSTEM"></a> <h2>CONTEXT_FILESYSTEM</h2> <p>file resource, which is a URL and doesn't include AP Scheme.</p> <hr> <a name="CONTEXT_FILE"></a> <h2>CONTEXT_FILE</h2> <p>file resource, which is a URL and doesn't include AP Scheme.</p> <hr> <a name="CONTEXT_PARAMETER_NAME"></a> <h2>CONTEXT_PARAMETER_NAME</h2> <p></p> <hr> <a name="CONTEXT_PARAMETER_VALUE"></a> <h2>CONTEXT_PARAMETER_VALUE</h2> <p></p> <hr> <a name="surl"></a> <h2>surl</h2> <p>the url in its incomplete state</p> <hr> <a name="surlpos"></a> <h2>surlpos</h2> <p>the position of the carot within the url</p> <hr> <a name="resourceURI"></a> <h2>resourceURI</h2> <p>resource file URI, no params (and no "vap:" schema), starting with http, sftp, etc.</p> <hr> <a name="params"></a> <h2>params</h2> <p>params parsed</p> <hr> <a name="context"></a> <h2>context</h2> <p>the context identifier enum for the completion. See CONTEXT_FILESYSTEM, CONTEXT_FILE, CONTEXT_PARAMETER_NAME, CONTEXT_PARAMETER_VALUE, etc.</p> <hr> <a name="completable"></a> <h2>completable</h2> <p>The string to be completed</p> <hr> <a name="completablepos"></a> <h2>completablepos</h2> <p>the position of the carot within the string</p> <hr> <a name="implicitName"></a> <h2>implicitName</h2> <p>used to identify the group the parameter implicitly specifies. For example, in ftp://cdaweb.gsfc.nasa.gov/pub/istp/noaa/noaa14/%Y/noaa14_meped1min_sem_%Y%m%d_v01.cdf?T01_gsmB&timerange=2000-01-01 T01_gsmB is part of the implicit group "id" of the cdf data source factory.</p> <hr> <a name="doc"></a> <h2>doc</h2> <p>one-line documentation</p> <hr> <a name="label"></a> <h2>label</h2> <p>label identifying the proposal, to be understood within the context of surl and the insertion point.</p> <hr> <a name="maybePlot"></a> <h2>maybePlot</h2> <p>hint that this completion should finish a valid URL, so go ahead and try to use it.</p> <hr> <a name="get"></a> <h2>get</h2> get( <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/Object.html'>Object</a> context, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/CompletionContext.html'>org.autoplot.datasource.CompletionContext</a> cc ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>returns the value for the context <pre> cc= new CompletionContext(); cc.surl= vap:http://www.autoplot.org/data/myfile.dat?param1=aaa¶m2=bbb cc.completable= b cc.surlpos= 63 get( CONTEXT_PARAMETER_NAME, cc ) -> param2 get( CONTEXT_FILE, cc ) -> http://www.autoplot.org/data/myfile.dat </pre></p> <h3>Parameters</h3> context - an Object <br> cc - a CompletionContext <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=get&unscoped_q=get">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/CompletionContext.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/CompletionContext.html#get">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/CompletionContext.java#l204">[view source]</a> <br> <br> <hr> <a name="insert"></a> <h2>insert</h2> insert( <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/CompletionContext.html'>org.autoplot.datasource.CompletionContext</a> cc, <a href='http://www-pw.physics.uiowa.edu/~jbf/autoplot/doc/org/autoplot/datasource/CompletionContext.html'>org.autoplot.datasource.CompletionContext</a> ccnew ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p>"ftp://cdaweb.gsfc.nasa.gov/pub/istp/noaa/noaa14/%Y/noaa14_meped1min_sem_%Y%m%d_v01.cdf?timerange=2000-01-01" "ftp://cdaweb.gsfc.nasa.gov/pub/istp/noaa/noaa14/%Y/noaa14_meped1min_sem_%Y%m%d_v01.cdf?Epoch&timerange=2000-01-01"</p> <h3>Parameters</h3> cc - a CompletionContext <br> ccnew - a CompletionContext <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=insert&unscoped_q=insert">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/CompletionContext.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/CompletionContext.html#insert">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/CompletionContext.java#l247">[view source]</a> <br> <br> <hr> <a name="toString"></a> <h2>toString</h2> toString( ) → <a href='https://docs.oracle.com/javase/8/docs/api/java/lang/String.html'>String</a> <p></p> <h3>Returns:</h3> java.lang.String <br><br> <a href="https://github.com/autoplot/dev/search?q=toString&unscoped_q=toString">[search for examples]</a> <a href="https://github.com/autoplot/documentation/tree/master/javadoc/org/autoplot/datasource/CompletionContext.md">[view on GitHub]</a> <a href="http://www-pw.physics.uiowa.edu/~jbf/autoplot/javadoc2018/org/autoplot/datasource/CompletionContext.html#toString">[view on old javadoc]</a> <a href="https://sourceforge.net/p/autoplot/code/HEAD/tree/autoplot/trunk/DataSource/src/org/autoplot/datasource/CompletionContext.java#l309">[view source]</a> <br> <br>