![JAR search and dependency download from the Maven repository](/logo.png)
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: Fri Jun 29 14:35:22 CEST 2018
*/
(function(undefined) {
/**
* @namespace DiscoveryScope
* @classdesc
* This is the generated enum type DiscoveryScope: DOCS GENERATED FROM INTERFACE DESCRIPTION
*
Generation date: Fri Jun 29 14:35:22 CEST 2018
*
Enumeration specifying the discovery scope choices
*
* @returns {DiscoveryScope} a new instance of a DiscoveryScope
*/
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(settings);
}
/**
* Used for serialization.
* @name DiscoveryScope#_typeName
* @type String
* @readonly
*/
Object.defineProperty(this, "_typeName", {
enumerable : true,
value : "joynr.types.DiscoveryScope"
});
if (settings !== undefined) {
this.name = settings.name;
this.value = settings.value;
}
};
/**
* @name DiscoveryScope#MAJOR_VERSION
* @constant {Number}
* @default 0
* @summary The MAJOR_VERSION of the enum type DiscoveryScope is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(DiscoveryScope, 'MAJOR_VERSION', { value: 0 });
/**
* @name DiscoveryScope#MINOR_VERSION
* @constant {Number}
* @default 0
* @summary The MINOR_VERSION of the enum type DiscoveryScope is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(DiscoveryScope, 'MINOR_VERSION', { value: 0 });
var preparePrototype = function(joynr) {
joynr.util.GenerationUtil.addEqualsEnum(DiscoveryScope);
};
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"
});
};
var joynr = require("joynr");
DiscoveryScope.prototype = new joynr.JoynrObject();
DiscoveryScope.prototype.constructor = DiscoveryScope;
preparePrototype(joynr);
createLiterals();
joynr.addType("joynr.types.DiscoveryScope", DiscoveryScope, true);
module.exports = DiscoveryScope;
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy