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.
create an empty completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
Object containing a completion proposal.
file resource, which is a URL and doesn't include AP Scheme.
file resource, which is a URL and doesn't include AP Scheme.
the url in its incomplete state
the position of the carot within the url
resource file URI, no params (and no "vap:" schema), starting with http, sftp, etc.
params parsed
the context identifier enum for the completion. See CONTEXT_FILESYSTEM, CONTEXT_FILE, CONTEXT_PARAMETER_NAME, CONTEXT_PARAMETER_VALUE, etc.
The string to be completed
the position of the carot within the string
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.
one-line documentation
label identifying the proposal, to be understood within the context of surl and the insertion point.
hint that this completion should finish a valid URL, so go ahead and try to use it.
returns the value for the context
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
"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"