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

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

/**
 * This is the generated struct type CustomParameter: DOCS GENERATED FROM INTERFACE DESCRIPTION
 * Generation date: Thu Aug 18 09:35:51 CEST 2016
 */
(function(undefined) {
	/**
	 * @name CustomParameter
	 * @constructor
	 *
	 * @classdesc
	 * This is the generated struct type CustomParameter: DOCS GENERATED FROM INTERFACE DESCRIPTION
	 * 
Generation date: Thu Aug 18 09:35:51 CEST 2016 *

a custom parameter consisting of a name and a value * * @param {Object} members - an object containing the individual member elements * @param {String} members.name - the name of the custom parameter * @param {String} members.value - the value of the custom parameter * @returns {CustomParameter} a new instance of a CustomParameter */ var CustomParameter = function CustomParameter(members) { if (!(this instanceof CustomParameter)) { // in case someone calls constructor without new keyword (e.g. var c = Constructor({..})) return new CustomParameter(members); } /** * Used for serialization. * @name CustomParameter#_typeName * @type String * @readonly */ Object.defineProperty(this, "_typeName", { configurable : false, writable : false, enumerable : true, value : "joynr.types.CustomParameter" }); /** * the name of the custom parameter * @name CustomParameter#name * @type String */ /** * the value of the custom parameter * @name CustomParameter#value * @type String */ Object.defineProperty(this, 'checkMembers', { enumerable: false, value: function checkMembers(check) { check(this.name, "String", "members.name"); check(this.value, "String", "members.value"); } }); if (members !== undefined) { this.name = members.name; this.value = members.value; } }; /** * @name CustomParameter#MAJOR_VERSION * @constant {Number} * @default 0 * @summary The MAJOR_VERSION of the struct type CustomParameter is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(CustomParameter, 'MAJOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); /** * @name CustomParameter#MINOR_VERSION * @constant {Number} * @default 0 * @summary The MINOR_VERSION of the struct type CustomParameter is GENERATED FROM THE INTERFACE DESCRIPTION */ Object.defineProperty(CustomParameter, 'MINOR_VERSION', { enumerable: false, configurable: false, writable: false, readable: true, value: 0 }); var memberTypes = { name: function() { return "String"; }, value: function() { return "String"; } }; Object.defineProperty(CustomParameter, '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/types/CustomParameter", ["joynr"], function (joynr) { CustomParameter.prototype = new joynr.JoynrObject(); CustomParameter.prototype.constructor = CustomParameter; joynr.addType("joynr.types.CustomParameter", CustomParameter); return CustomParameter; }); } else if (typeof exports !== 'undefined' ) { if ((module !== undefined) && module.exports) { exports = module.exports = CustomParameter; } else { // support CommonJS module 1.1.1 spec (`exports` cannot be a function) exports.CustomParameter = CustomParameter; } var joynr = requirejs("joynr"); CustomParameter.prototype = new joynr.JoynrObject(); CustomParameter.prototype.constructor = CustomParameter; joynr.addType("joynr.types.CustomParameter", CustomParameter); } else { CustomParameter.prototype = new window.joynr.JoynrObject(); CustomParameter.prototype.constructor = CustomParameter; window.joynr.addType("joynr.types.CustomParameter", CustomParameter); window.CustomParameter = CustomParameter; } })();




© 2015 - 2025 Weber Informatics LLC | Privacy Policy