IMeta
pentaho.module. IMeta
The IMeta
interface contains the metadata of a JavaScript module.
A JavaScript module is identified by its identifier
.
Source: doc-js/pentaho/module/IMeta.jsdoc, line 17
See also: pentaho.module.ITypeMeta , pentaho.module.IInstanceMeta
Members
Name | Description |
---|---|
alias : | Gets the alias of the module. |
config : | Gets the configuration of the module. |
error : | Gets the preparation or loading error of the module, if any, or |
getAnnotationsIds | Gets an array of identifiers of the annotations of this module, if any. |
hasAnnotation | Determines if this module is annotated with an annotation of a given type. |
id : | Gets the identifier of the module. |
isLoaded : | Gets a value that indicates if the module is loaded. |
isPrepared : | Gets a value that indicates if the module's configuration and asynchronous annotations have been loaded. |
isRejected : | Gets a value that indicates if the module's preparation or loading failed. |
isVirtual : | Gets a value that indicates if the module is virtual. |
kind : | Gets the kind of module. |
ranking : | Gets the ranking of the module. |
resolveId | Resolves a module identifier as if it were a dependency of this one. |
value : | Gets the value of the module, if it has been loaded already, or |
Methods
Name | Description |
---|---|
getAnnotation(Annotation, keyArgs) : pentaho.module.Annotation | Gets an annotation associated with this module, given the annotation type or its identifier. |
getAnnotationAsync(Annotation, keyArgs) : Promise.< | Gets an annotation associated with this module, asynchronously, given the annotation type or its identifier. |
isInstanceOf(typeIdOrAlias) : boolean | Indicates if this module is an instance module which is a direct or indirect instance of a given type module. |
isSubtypeOf(baseIdOrAlias) : boolean | Indicates if this module is a type module which is a subtype of given type module. |
loadAsync() : Promise | Loads the module and returns a promise for its value. |
prepareAsync() : Promise | Prepares a module for loading. |
Members Details
alias: |
---|
Gets the alias of the module. |
config: |
---|
Gets the configuration of the module. When not yet loaded, or if the module has no configuration, returns Source: doc-js/pentaho/module/IMeta.jsdoc, line 112 See also: pentaho.module.IMeta#isPrepared , pentaho.module.IMeta#prepareAsync , pentaho.module.IMeta#value |
error: |
---|
Gets the preparation or loading error of the module, if any, or Source: doc-js/pentaho/module/IMeta.jsdoc, line 153 See also: pentaho.module.IMeta#isRejected , pentaho.module.IMeta#value |
getAnnotationsIds: |
---|
Gets an array of identifiers of the annotations of this module, if any. |
hasAnnotation: |
---|
Determines if this module is annotated with an annotation of a given type. Note that an annotation of the given type may be associated with this module and, still, not have been loaded yet! You may want to use this method to avoid a call to |
id: |
---|
Gets the identifier of the module. |
isLoaded: |
---|
Gets a value that indicates if the module is loaded. When a module is loaded, its Source: doc-js/pentaho/module/IMeta.jsdoc, line 180 See also: pentaho.module.IMeta#value |
isPrepared: |
---|
Gets a value that indicates if the module's configuration and asynchronous annotations have been loaded. Source: doc-js/pentaho/module/IMeta.jsdoc, line 166 See also: pentaho.module.IMeta#prepareAsync , pentaho.module.IMeta#config , pentaho.module.IMeta#getAnnotation , pentaho.module.IMeta#value |
isRejected: |
---|
Gets a value that indicates if the module's preparation or loading failed. Source: doc-js/pentaho/module/IMeta.jsdoc, line 197 See also: pentaho.module.IMeta#error , pentaho.module.IMeta#value |
isVirtual: |
---|
Gets a value that indicates if the module is virtual. A virtual module does not have a corresponding file or implementation. |
kind: |
---|
Gets the kind of module. One of the strings |
ranking: |
---|
Gets the ranking of the module. The ranking determines the order of the module amongst other modules. |
resolveId: |
---|
Resolves a module identifier as if it were a dependency of this one. Resolving makes Afterwards, any applicable RequireJS contextual mapping configuration is applied. Source: doc-js/pentaho/module/IMeta.jsdoc, line 209 See also: pentaho.module.util.resolveModuleId |
value: |
---|
Gets the value of the module, if it has been loaded already, or If the module failed to prepare or load, its Source: doc-js/pentaho/module/IMeta.jsdoc, line 128 See also: pentaho.module.IMeta#isPrepared , pentaho.module.IMeta#isLoaded , pentaho.module.IMeta#isRejected , pentaho.module.IMeta#config , pentaho.module.IMeta#error , pentaho.module.IMeta#getAnnotation , pentaho.module.IMeta#prepareAsync , pentaho.module.IMeta#loadAsync |
Methods Details
getAnnotation(Annotation, keyArgs) : pentaho.module.Annotation | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets an annotation associated with this module, given the annotation type or its identifier. Either this module is annotated with the requested annotation, or, optionally, if this is a type module and If no annotation exists (or is inherited), or exists but is not available synchronously, If this module has already been prepared, then all of its annotations (even if inherited) are available synchronously. From within the code of a module which uses the If it is not known whether an annotation can be obtained synchronously, the When this method returns an annotation, for a given annotation type, it always returns the same annotation instance. Source: doc-js/pentaho/module/IMeta.jsdoc, line 224
|
getAnnotationAsync(Annotation, keyArgs) : Promise.< | ||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Gets an annotation associated with this module, asynchronously, given the annotation type or its identifier. Either this module is annotated with the requested annotation, or, optionally, if this is a type module and If no annotation exists (or is inherited), a settled promise with the value When this method returns a settled promise, with an annotation, for a given annotation type, it always returns the same annotation instance. Source: doc-js/pentaho/module/IMeta.jsdoc, line 297
|
isInstanceOf(typeIdOrAlias) : boolean | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Indicates if this module is an instance module which is a direct or indirect instance of a given type module. Source: doc-js/pentaho/module/IMeta.jsdoc, line 351
|
isSubtypeOf(baseIdOrAlias) : boolean | ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Indicates if this module is a type module which is a subtype of given type module. A module is a subtype of another if both are type modules and they're the same module or the base module can be found by walking up through its Source: doc-js/pentaho/module/IMeta.jsdoc, line 332
|
loadAsync() : Promise | ||||
---|---|---|---|---|
Loads the module and returns a promise for its value. Source: doc-js/pentaho/module/IMeta.jsdoc, line 101
See also: pentaho.module.IMeta#value |
prepareAsync() : Promise | ||||
---|---|---|---|---|
Prepares a module for loading. The preparation of a module consists of: i) loading its configuration, and ii) loading asynchronous annotations associated with it. Loading a module, through Source: doc-js/pentaho/module/IMeta.jsdoc, line 80
See also: pentaho.module.IMeta#isPrepared , pentaho.module.IMeta#config , pentaho.module.IMeta#getAnnotation , pentaho.module.IMeta#value |