joynr.types.DiscoveryScope.js Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libjoynr-js Show documentation
Show all versions of libjoynr-js Show documentation
JOYnr JavaScript libjoynr-js
/**
* This is the generated enum type DiscoveryScope: DOCS GENERATED FROM INTERFACE DESCRIPTION
* Generation date: Wed Jan 27 16:29:10 CET 2016
*/
(function(undefined) {
/**
* @namespace DiscoveryScope
* @classdesc
* This is the generated enum type DiscoveryScope: DOCS GENERATED FROM INTERFACE DESCRIPTION
*
Generation date: Wed Jan 27 16:29:10 CET 2016
*
Enumeration specifying the discovery scope choices
*/
var DiscoveryScope = function DiscoveryScope(settings){
if (!(this instanceof DiscoveryScope)) {
// in case someone calls constructor without new keyword (e.g. var c = Constructor({..}))
return new DiscoveryScope(members);
}
/**
* Used for serialization.
* @name DiscoveryScope#_typeName
* @type String
* @field
* @readonly
*/
Object.defineProperty(this, "_typeName", {
configurable : false,
writable : false,
enumerable : true,
value : "joynr.types.DiscoveryScope"
});
if (settings !== undefined) {
this.name = settings.name;
this.value = settings.value;
}
};
var createLiterals = function() {
/**
* @name DiscoveryScope.LOCAL_ONLY
* @readonly
* @summary
*
Consider only entries from local cache
*/
DiscoveryScope.LOCAL_ONLY = new DiscoveryScope({
name: "LOCAL_ONLY",
value: "LOCAL_ONLY"
});
/**
* @name DiscoveryScope.LOCAL_THEN_GLOBAL
* @readonly
* @summary
*
Consider only entries from local cache, in no results are found, query global cache as well
*/
DiscoveryScope.LOCAL_THEN_GLOBAL = new DiscoveryScope({
name: "LOCAL_THEN_GLOBAL",
value: "LOCAL_THEN_GLOBAL"
});
/**
* @name DiscoveryScope.LOCAL_AND_GLOBAL
* @readonly
* @summary
*
Consider both local and global entries
*/
DiscoveryScope.LOCAL_AND_GLOBAL = new DiscoveryScope({
name: "LOCAL_AND_GLOBAL",
value: "LOCAL_AND_GLOBAL"
});
/**
* @name DiscoveryScope.GLOBAL_ONLY
* @readonly
* @summary
*
Consider only global entries
*/
DiscoveryScope.GLOBAL_ONLY = new DiscoveryScope({
name: "GLOBAL_ONLY",
value: "GLOBAL_ONLY"
});
};
// AMD support
if (typeof define === 'function' && define.amd) {
define("joynr/types/DiscoveryScope", ["joynr"], function (joynr) {
DiscoveryScope.prototype = new joynr.JoynrObject();
DiscoveryScope.prototype.constructor = DiscoveryScope;
createLiterals();
joynr.addType("joynr.types.DiscoveryScope", DiscoveryScope, true);
return DiscoveryScope;
});
} else if (typeof exports !== 'undefined' ) {
if ((module !== undefined) && module.exports) {
exports = module.exports = DiscoveryScope;
} else {
// support CommonJS module 1.1.1 spec (`exports` cannot be a function)
exports.DiscoveryScope = DiscoveryScope;
}
var joynr = requirejs("joynr");
DiscoveryScope.prototype = new joynr.JoynrObject();
DiscoveryScope.prototype.constructor = DiscoveryScope;
createLiterals();
joynr.addType("joynr.types.DiscoveryScope", DiscoveryScope, true);
} else {
//we assume a correct order of script loading
joynr = window.joynr;
DiscoveryScope.prototype = new joynr.JoynrObject();
DiscoveryScope.prototype.constructor = DiscoveryScope;
createLiterals();
joynr.addType("joynr.types.DiscoveryScope", DiscoveryScope, true);
window.DiscoveryScope = DiscoveryScope;
}
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy