joynr.system.JoynrLoggingContextTag.js Maven / Gradle / Ivy
/**
* This is the generated struct type JoynrLoggingContextTag: DOCS GENERATED FROM INTERFACE DESCRIPTION
* Generation date: Thu Aug 18 09:35:51 CEST 2016
*/
(function(undefined) {
/**
* @name JoynrLoggingContextTag
* @constructor
*
* @classdesc
* This is the generated struct type JoynrLoggingContextTag: DOCS GENERATED FROM INTERFACE DESCRIPTION
*
Generation date: Thu Aug 18 09:35:51 CEST 2016
*
Context information record for log event
*
* @param {Object} members - an object containing the individual member elements
* @param {String} members.key - The key of a context tag entry
* @param {String} members.value - The value of a context tag entry
* @returns {JoynrLoggingContextTag} a new instance of a JoynrLoggingContextTag
*/
var JoynrLoggingContextTag = function JoynrLoggingContextTag(members) {
if (!(this instanceof JoynrLoggingContextTag)) {
// in case someone calls constructor without new keyword (e.g. var c = Constructor({..}))
return new JoynrLoggingContextTag(members);
}
/**
* Used for serialization.
* @name JoynrLoggingContextTag#_typeName
* @type String
* @readonly
*/
Object.defineProperty(this, "_typeName", {
configurable : false,
writable : false,
enumerable : true,
value : "joynr.system.JoynrLoggingContextTag"
});
/**
* The key of a context tag entry
* @name JoynrLoggingContextTag#key
* @type String
*/
/**
* The value of a context tag entry
* @name JoynrLoggingContextTag#value
* @type String
*/
Object.defineProperty(this, 'checkMembers', {
enumerable: false,
value: function checkMembers(check) {
check(this.key, "String", "members.key");
check(this.value, "String", "members.value");
}
});
if (members !== undefined) {
this.key = members.key;
this.value = members.value;
}
};
/**
* @name JoynrLoggingContextTag#MAJOR_VERSION
* @constant {Number}
* @default 0
* @summary The MAJOR_VERSION of the struct type JoynrLoggingContextTag is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(JoynrLoggingContextTag, 'MAJOR_VERSION', {
enumerable: false,
configurable: false,
writable: false,
readable: true,
value: 0
});
/**
* @name JoynrLoggingContextTag#MINOR_VERSION
* @constant {Number}
* @default 0
* @summary The MINOR_VERSION of the struct type JoynrLoggingContextTag is GENERATED FROM THE INTERFACE DESCRIPTION
*/
Object.defineProperty(JoynrLoggingContextTag, 'MINOR_VERSION', {
enumerable: false,
configurable: false,
writable: false,
readable: true,
value: 0
});
var memberTypes = {
key: function() { return "String"; },
value: function() { return "String"; }
};
Object.defineProperty(JoynrLoggingContextTag, 'getMemberType', {
enumerable: false,
value: function getMemberType(memberName) {
if (memberTypes[memberName] !== undefined) {
return memberTypes[memberName]();
}
return undefined;
}
});
// AMD support
if (typeof define === 'function' && define.amd) {
define("joynr/system/JoynrLoggingContextTag", ["joynr"], function (joynr) {
JoynrLoggingContextTag.prototype = new joynr.JoynrObject();
JoynrLoggingContextTag.prototype.constructor = JoynrLoggingContextTag;
joynr.addType("joynr.system.JoynrLoggingContextTag", JoynrLoggingContextTag);
return JoynrLoggingContextTag;
});
} else if (typeof exports !== 'undefined' ) {
if ((module !== undefined) && module.exports) {
exports = module.exports = JoynrLoggingContextTag;
} else {
// support CommonJS module 1.1.1 spec (`exports` cannot be a function)
exports.JoynrLoggingContextTag = JoynrLoggingContextTag;
}
var joynr = requirejs("joynr");
JoynrLoggingContextTag.prototype = new joynr.JoynrObject();
JoynrLoggingContextTag.prototype.constructor = JoynrLoggingContextTag;
joynr.addType("joynr.system.JoynrLoggingContextTag", JoynrLoggingContextTag);
} else {
JoynrLoggingContextTag.prototype = new window.joynr.JoynrObject();
JoynrLoggingContextTag.prototype.constructor = JoynrLoggingContextTag;
window.joynr.addType("joynr.system.JoynrLoggingContextTag", JoynrLoggingContextTag);
window.JoynrLoggingContextTag = JoynrLoggingContextTag;
}
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy