1 /*global $k*/ 2 3 /** 4 * @class A choice of a choice attribute. The possible choices are defined by ChoiceRange. 5 **/ 6 $k.Choice = function() { }; 7 8 /** 9 * Returns true if the values are equal 10 * 11 * @function 12 * @returns {boolean} 13 **/ 14 $k.Choice.prototype.equals = function(value) { }; 15 16 /** 17 * Returns the internal name (key) of the choice 18 * 19 * @function 20 * @returns {string} The internal name 21 **/ 22 $k.Choice.prototype.internalName = function() { }; 23 24 /** 25 * Returns the position (0-based) of the choice, if defined 26 * 27 * @function 28 * @returns {number} 29 **/ 30 $k.Choice.prototype.position = function() { }; 31 32 /** 33 * Returns the untranslated string 34 * 35 * @function 36 * @returns {string} 37 **/ 38 $k.Choice.prototype.untranslatedString = function() { }; 39 40 /** 41 * Returns the string representation of the choice. 42 * Returns the fallback string if the choice does not define a translation for a language 43 * 44 * @function 45 * @param {string} [language] Language of the value. If not defined, the current language will be used 46 * @returns {string} 47 **/ 48 $k.Choice.prototype.valueString = function(language) { }; 49 50