1 /*global $k*/ 2 3 /** 4 * @class Represents an instance. 5 * @extends $k.SemanticElement 6 **/ 7 $k.Instance = function() { }; 8 9 /** 10 * Create an extension of the given type 11 * 12 * @function 13 * @param type Type or internal name 14 * @returns {$k.Instance[]} 15 * @throws {$k.exception.SchemaError} If "type" is not a possible extension 16 * @throws {$k.exception.TypeError} If "type" is not a type or internal name 17 * @throws {$k.exception.TransactionError} If no write transaction is active 18 **/ 19 $k.Instance.prototype.createExtension = function(type) { }; 20 21 /** 22 * Returns the extension instances 23 * 24 * @function 25 * @returns {$k.Instance[]} 26 **/ 27 $k.Instance.prototype.extensions = function() { }; 28 29 /** 30 * Returns all possible extension types 31 * 32 * @function 33 * @returns {$k.Type[]} 34 **/ 35 $k.Instance.prototype.possibleExtensions = function() { }; 36 37