mirror of
https://github.com/nasa/openmct.git
synced 2025-06-19 23:53:49 +00:00
[JSDoc] Add annotations
Bulk-add JSDoc annotations, WTD-1482.
This commit is contained in:
@ -38,6 +38,8 @@ define(
|
||||
* contains resource files used by this bundle
|
||||
* @property {Object.<string,ExtensionDefinition[]>} [extensions={}]
|
||||
* all extensions exposed by this bundle
|
||||
* @constructor
|
||||
* @memberof platform/framework
|
||||
*/
|
||||
|
||||
|
||||
@ -84,6 +86,7 @@ define(
|
||||
* Get the path to this bundle.
|
||||
* @memberof Bundle#
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getPath: function () {
|
||||
return path;
|
||||
@ -97,6 +100,7 @@ define(
|
||||
* @param {string} [sourceFile] optionally, give a path to
|
||||
* a specific source file in the bundle.
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getSourcePath: function (sourceFile) {
|
||||
var subpath = sourceFile ?
|
||||
@ -114,6 +118,7 @@ define(
|
||||
* @param {string} [resourceFile] optionally, give a path to
|
||||
* a specific resource file in the bundle.
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getResourcePath: function (resourceFile) {
|
||||
var subpath = resourceFile ?
|
||||
@ -131,6 +136,7 @@ define(
|
||||
* @param {string} [libraryFile] optionally, give a path to
|
||||
* a specific library file in the bundle.
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getLibraryPath: function (libraryFile) {
|
||||
var subpath = libraryFile ?
|
||||
@ -145,6 +151,7 @@ define(
|
||||
* it will resemble a require.config object.
|
||||
* @memberof Bundle#
|
||||
* @returns {object}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getConfiguration: function () {
|
||||
return definition.configuration || {};
|
||||
@ -155,6 +162,7 @@ define(
|
||||
* bundle) and the name (human-readable name for this
|
||||
* bundle.)
|
||||
* @returns {string} log-friendly name for this bundle
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getLogName: function () {
|
||||
return logName;
|
||||
@ -166,6 +174,7 @@ define(
|
||||
* @param category
|
||||
* @memberof Bundle#
|
||||
* @returns {Array}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getExtensions: function (category) {
|
||||
var extensions = definition.extensions[category] || [];
|
||||
@ -180,6 +189,7 @@ define(
|
||||
*
|
||||
* @memberof Bundle#
|
||||
* @returns {Array}
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getExtensionCategories: function () {
|
||||
return Object.keys(definition.extensions);
|
||||
@ -190,6 +200,7 @@ define(
|
||||
*
|
||||
* @memberof Bundle#
|
||||
* @returns {BundleDefinition} the raw definition of this bundle
|
||||
* @memberof platform/framework.Bundle#
|
||||
*/
|
||||
getDefinition: function () {
|
||||
return definition;
|
||||
@ -201,4 +212,4 @@ define(
|
||||
|
||||
return Bundle;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -39,6 +39,7 @@ define(
|
||||
* useful to the framework. This provides the base information which
|
||||
* will be used by later phases of framework layer initialization.
|
||||
*
|
||||
* @memberof platform/framework
|
||||
* @constructor
|
||||
* @param {object} $http Angular's HTTP requester
|
||||
* @param {object} $log Angular's logging service
|
||||
@ -120,6 +121,7 @@ define(
|
||||
* @param {string|string[]} an array of bundle names to load, or
|
||||
* the name of a JSON file containing that array
|
||||
* @returns {Promise.<Bundle[]>}
|
||||
* @memberof platform/framework.BundleLoader#
|
||||
*/
|
||||
loadBundles: loadBundles
|
||||
};
|
||||
@ -127,4 +129,4 @@ define(
|
||||
|
||||
return BundleLoader;
|
||||
}
|
||||
);
|
||||
);
|
||||
|
@ -38,6 +38,8 @@ define(
|
||||
* @property {string[]} [depends=[]] the dependencies needed by this
|
||||
* extension; these are strings as shall be passed to
|
||||
* Angular's dependency resolution mechanism.
|
||||
* @constructor
|
||||
* @memberof platform/framework
|
||||
*/
|
||||
|
||||
/**
|
||||
@ -81,6 +83,7 @@ define(
|
||||
* Get the machine-readable identifier for this extension.
|
||||
*
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getKey: function () {
|
||||
return definition.key || "undefined";
|
||||
@ -90,6 +93,7 @@ define(
|
||||
*
|
||||
* @memberof Extension#
|
||||
* @returns {Bundle}
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getBundle: function () {
|
||||
return bundle;
|
||||
@ -100,6 +104,7 @@ define(
|
||||
*
|
||||
* @memberof Extension#
|
||||
* @returns {string}
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getCategory: function () {
|
||||
return category;
|
||||
@ -111,6 +116,7 @@ define(
|
||||
*
|
||||
* @returns {boolean} true if an implementation separate
|
||||
* from this definition should also be loaded
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
hasImplementation: function () {
|
||||
return definition.implementation !== undefined;
|
||||
@ -122,6 +128,7 @@ define(
|
||||
*
|
||||
* @memberof Extension#
|
||||
* @returns {string} path to implementation, or undefined
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getImplementationPath: function () {
|
||||
return definition.implementation ?
|
||||
@ -134,6 +141,7 @@ define(
|
||||
* extension) and the name (human-readable name for this
|
||||
* extension.)
|
||||
* @returns {string} log-friendly name for this extension
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getLogName: function () {
|
||||
return logName;
|
||||
@ -149,6 +157,7 @@ define(
|
||||
* @returns {ExtensionDefinition} the plain definition of
|
||||
* this extension, as read from the bundle
|
||||
* declaration.
|
||||
* @memberof platform/framework.Extension#
|
||||
*/
|
||||
getDefinition: function () {
|
||||
return extensionDefinition;
|
||||
@ -160,4 +169,4 @@ define(
|
||||
return Extension;
|
||||
|
||||
}
|
||||
);
|
||||
);
|
||||
|
Reference in New Issue
Block a user