src/main/webapp/js/cestore.js
/*******************************************************************************
 * (C) Copyright IBM Corporation  2011, 2017
 * All Rights Reserved
 *******************************************************************************/
(C) Copyright IBM Corporation  2011, 2017
All Rights Reserved
( C ) Copyright IBM Corporation 2011 2017 All Rights Reserved
function CeStore(pJsDebug) {
	this.DEFAULT_CESTORE = 'DEFAULT';
	this.FORMAT_JSON = 'application/json';
	this.FORMAT_TEXT = 'text/plain';
	this.STYLE_ID = 'ID';
	this.STYLE_VS = 'verb singular';
	this.STYLE_FN = 'functional noun';
	this.autoRunRules = true;
	this.showStats = true;
	this.msg = new CeStoreMessage(pJsDebug);
	this.utils = null;		
	this.api = null;		
	this.initialise = function() {
		this.msg.debug('CeStore', 'initialise');
		this.api = new CeStoreApi(this);
		this.api.concepts = new CeStoreApiConcept(this);
		this.api.instances = new CeStoreApiInstance(this);
		this.api.models = new CeStoreApiModel(this);
		this.api.patterns = new CeStoreApiPattern(this);
		this.api.properties = new CeStoreApiProperty(this);
		this.api.rationale = new CeStoreApiRationale(this);
		this.api.sentences = new CeStoreApiSentence(this);
		this.api.sources = new CeStoreApiSource(this);
		this.api.special = new CeStoreApiSpecial(this);
		this.api.stores = new CeStoreApiStore(this);
		this.utils = new CeStoreUtils(this.msg);
		this.msg.debug('CE initialisation complete', 'initialise', [ this ]);
	};
	this.isDebug = function() {
		return this.msg.jsDebug;
	};
}
function CeStore ( pJsDebug ) { this . DEFAULT_CESTORE = 'DEFAULT' ; this . FORMAT_JSON = 'application/json' ; this . FORMAT_TEXT = 'text/plain' ; this . STYLE_ID = 'ID' ; this . STYLE_VS = 'verb singular' ; this . STYLE_FN = 'functional noun' ; this . autoRunRules = true ; this . showStats = true ; this . msg = new CeStoreMessage ( pJsDebug ) ; this . utils = null ; this . api = null ; this . initialise = function ( ) { this . msg . debug ( 'CeStore' , 'initialise' ) ; this . api = new CeStoreApi ( this ) ; this . api . concepts = new CeStoreApiConcept ( this ) ; this . api . instances = new CeStoreApiInstance ( this ) ; this . api . models = new CeStoreApiModel ( this ) ; this . api . patterns = new CeStoreApiPattern ( this ) ; this . api . properties = new CeStoreApiProperty ( this ) ; this . api . rationale = new CeStoreApiRationale ( this ) ; this . api . sentences = new CeStoreApiSentence ( this ) ; this . api . sources = new CeStoreApiSource ( this ) ; this . api . special = new CeStoreApiSpecial ( this ) ; this . api . stores = new CeStoreApiStore ( this ) ; this . utils = new CeStoreUtils ( this . msg ) ; this . msg . debug ( 'CE initialisation complete' , 'initialise' , [ this ] ) ; } ; this . isDebug = function ( ) { return this . msg . jsDebug ; } ; }
(C) Copyright IBM Corporation  2011, 2017
 All Rights Reserved
( C ) Copyright IBM Corporation 2011 2017 All Rights Reserved
//instantiated when /core/utils.js is loaded //instantiated when /api/api.js is loaded