Namespace: v3

v3

Set to "backwards compatibility mode v3" (for pre version 4.0) for module names and method names. This function adds old names/synonyms for modules names (on mmir object/namespace): In addition, old method names will be added as synonyms: Methods with changed signature will be re-mapped to match their old signature
  • mmir.ConfigurationManager
    • map get(propertyName, defaultValue, useSafeAccess) back to
      get(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _get(propertyName, useSafeAccess, defaultValue)
    • map getBoolean(propertyName, defaultValue, useSafeAccess) back to
      getBoolean(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _getBoolean(propertyName, useSafeAccess, defaultValue)
    • map getString(propertyName, defaultValue, useSafeAccess) back to
      getString(propertyName, useSafeAccess, defaultValue)
      the original function will be available via _getString(propertyName, useSafeAccess, defaultValue)
Lastly, removed methods will be added:
See:

Example

mmir.require(['mmirf/core3Compatibility', 'mmirf/core'], function(setCompatibility, mmir){
		setCompatibility(mmir);
});

//OR: if mmir-lib modules were require'd in application code, add v3 module-ID aliases first:
mmir.require(['mmirf/core3ModuleIdCompatibility', 'mmirf/core3Compatibility', 'mmirf/core'], function(core3ModuleIdCompatibility, setCompatibility, mmir){
		core3ModuleIdCompatibility(mmir.require, mmir);
		setCompatibility(mmir);
});

Requires

  • module:mmir.compat.v3.SemanticInterpreterCompatibility

Classes

CommonUtils
Constants
GrammarConverter
LanguageManager
ModuleIdCompat
SemanticInterpreter
SemanticInterpreterCompatibility

Methods

staticmmir.compat.v3.setToCompatibilityMode(mmir)

Set to "backwards compatibility mode" (for pre version 4.0). This function re-adds deprecated and removed functions and properties to the (core) mmir namespace. NOTE that once set to compatibility mode, it cannot be reset to non-compatibility mode.
Name Type Description
mmir mmir the (core) instance/namespace for MMIR