All Downloads are FREE. Search and download functionalities are using the official Maven repository.

joynr.types.ProviderScope.js Maven / Gradle / Ivy

There is a newer version: 1.4.0
Show newest version
/**
 * This is the generated enum type ProviderScope: DOCS GENERATED FROM INTERFACE DESCRIPTION
 * Generation date: Mon Feb 12 16:22:04 CET 2018
 */
(function(undefined) {

	/**
	 * @namespace ProviderScope
	 * @classdesc
	 * This is the generated enum type ProviderScope: DOCS GENERATED FROM INTERFACE DESCRIPTION
	 * 
Generation date: Mon Feb 12 16:22:04 CET 2018 *

the scope in which the provider is registered * * @returns {ProviderScope} a new instance of a ProviderScope */ var ProviderScope = function ProviderScope(settings){ if (!(this instanceof ProviderScope)) { // in case someone calls constructor without new keyword (e.g. var c = Constructor({..})) return new ProviderScope(settings); } /** * Used for serialization. * @name ProviderScope#_typeName * @type String * @readonly */ Object.defineProperty(this, "_typeName", { configurable : false, writable : false, enumerable : true, value : "joynr.types.ProviderScope" }); if (settings !== undefined) { this.name = settings.name; this.value = settings.value; } }; /** * @name ProviderScope#MAJOR_VERSION * @constant {Number} * @default 0 * @summary The MAJOR_VERSION of the enum type ProviderScope is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(ProviderScope, 'MAJOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); /** * @name ProviderScope#MINOR_VERSION * @constant {Number} * @default 0 * @summary The MINOR_VERSION of the enum type ProviderScope is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(ProviderScope, 'MINOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); var preparePrototype = function() { Object.defineProperty(ProviderScope.prototype, 'equals', { enumerable: false, configurable: false, writable: false, readable: true, value: function equals(other) { var i; if (this === other) { return true; } if (other === undefined || other === null) { return false; } if (other._typeName === undefined || this._typeName !== other._typeName) { return false; } if (this.name !== other.name || this.value !== other.value) { return false; } return true; } }); }; var createLiterals = function() { /** * @name ProviderScope.GLOBAL * @readonly * @summary *

indicates that the provider is for use with the local and global cluster * controller */ ProviderScope.GLOBAL = new ProviderScope({ name: "GLOBAL", value: "GLOBAL" }); /** * @name ProviderScope.LOCAL * @readonly * @summary *

indicates that the provider is only for use with the local cluster * controller */ ProviderScope.LOCAL = new ProviderScope({ name: "LOCAL", value: "LOCAL" }); }; // AMD support if (typeof define === 'function' && define.amd) { define("joynr/types/ProviderScope", ["joynr"], function (joynr) { ProviderScope.prototype = new joynr.JoynrObject(); ProviderScope.prototype.constructor = ProviderScope; preparePrototype(); createLiterals(); joynr.addType("joynr.types.ProviderScope", ProviderScope, true); return ProviderScope; }); } else if (typeof exports !== 'undefined' ) { if ((module !== undefined) && module.exports) { exports = module.exports = ProviderScope; } else { // support CommonJS module 1.1.1 spec (`exports` cannot be a function) exports.ProviderScope = ProviderScope; } var joynr = require("joynr"); ProviderScope.prototype = new joynr.JoynrObject(); ProviderScope.prototype.constructor = ProviderScope; preparePrototype(); createLiterals(); joynr.addType("joynr.types.ProviderScope", ProviderScope, true); } else { //we assume a correct order of script loading joynr = window.joynr; ProviderScope.prototype = new joynr.JoynrObject(); ProviderScope.prototype.constructor = ProviderScope; preparePrototype(); createLiterals(); joynr.addType("joynr.types.ProviderScope", ProviderScope, true); window.ProviderScope = ProviderScope; } })();




© 2015 - 2025 Weber Informatics LLC | Privacy Policy