Class Index | File Index

Classes


Class ConfigAdaptor.JB_json_v1


Defined in: JB_json_v1.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
Configuration adaptor for JBrowse JSON version 1 configuration files (formerly known as trackList.json files).
Method Summary
Method Attributes Method Name and Description
 
load(args)
 
parse_conf(conf_text, load_args)
In this adaptor, just evals the conf text to parse the JSON, but other conf adaptors might want to inherit and override this.
 
regularize_conf(o, load_args)
Applies defaults and any other necessary tweaks to the loaded JSON configuration.
Class Detail
ConfigAdaptor.JB_json_v1()
Configuration adaptor for JBrowse JSON version 1 configuration files (formerly known as trackList.json files).
Method Detail
load(args)
Parameters:
args

{Object} parse_conf(conf_text, load_args)
In this adaptor, just evals the conf text to parse the JSON, but other conf adaptors might want to inherit and override this.
Parameters:
{String} conf_text
the configuration text
{Object} load_args
the arguments that were passed to load()
Returns:
{Object} the parsed JSON

regularize_conf(o, load_args)
Applies defaults and any other necessary tweaks to the loaded JSON configuration. Called by load() on the JSON configuration before it calls the onSuccess callback.
Parameters:
{Object} o
the object containing the configuration, which it modifies in-place
{Object} load_args
the arguments that were passed to load()
Returns:
the same object it was passed

Documentation generated by JsDoc Toolkit 2.4.0 on Thu Jun 14 2012 17:43:45 GMT-0400 (EDT)