joynr.system.JoynrLoggingContextTag.js Maven / Gradle / Ivy
/**
* This is the generated struct type JoynrLoggingContextTag: DOCS GENERATED FROM INTERFACE DESCRIPTION
* Generation date: Mon Dec 05 09:32:59 CET 2016
*/
(function(undefined) {
/**
* @name JoynrLoggingContextTag
* @constructor
*
* @classdesc
* This is the generated struct type JoynrLoggingContextTag: DOCS GENERATED FROM INTERFACE DESCRIPTION
*
Generation date: Mon Dec 05 09:32:59 CET 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 : JoynrLoggingContextTag._typeName
});
/**
* The key of a context tag entry
* @name JoynrLoggingContextTag#key
* @type String
*/
/**
* The value of a context tag entry
* @name JoynrLoggingContextTag#value
* @type String
*/
if (members !== undefined) {
this.key = members.key;
this.value = members.value;
}
};
Object.defineProperty(JoynrLoggingContextTag, "_typeName", {
configurable : false,
writable : false,
enumerable : false,
value : "joynr.system.JoynrLoggingContextTag"
});
Object.defineProperty(JoynrLoggingContextTag, 'checkMembers', {
enumerable: false,
configurable: false,
writable: false,
readable: true,
value: function checkMembers(instance, check) {
check(instance.key, "String", "members.key");
check(instance.value, "String", "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 preparePrototype = function(joynr) {
JoynrLoggingContextTag.prototype = new joynr.JoynrObject();
JoynrLoggingContextTag.prototype.constructor = JoynrLoggingContextTag;
Object.defineProperty(JoynrLoggingContextTag.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.key === undefined || this.key === null) {
if (other.key !== null && other.key !== undefined) {
return false;
}
} else if (this.key !== other.key){
return false;
}
if (this.value === undefined || this.value === null) {
if (other.value !== null && other.value !== undefined) {
return false;
}
} else if (this.value !== other.value){
return false;
}
return true;
}
});
};
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) {
preparePrototype(joynr);
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");
preparePrototype(joynr);
joynr.addType("joynr.system.JoynrLoggingContextTag", JoynrLoggingContextTag);
} else {
preparePrototype(window.joynr);
window.joynr.addType("joynr.system.JoynrLoggingContextTag", JoynrLoggingContextTag);
window.JoynrLoggingContextTag = JoynrLoggingContextTag;
}
})();
© 2015 - 2025 Weber Informatics LLC | Privacy Policy