UNPKG

@accordproject/concerto-core

Version:

Core Implementation for the Concerto Modeling Language

85 lines (84 loc) 2.34 kB
import Declaration = require('./declaration'); /** * MapDeclaration defines a Map data structure, which allows storage of a collection * of values, where each value is associated and indexed with a unique key. * * @extends Decorated * @see See {@link Decorated} * @class * @memberof module:concerto-core */ declare class MapDeclaration extends Declaration { /** * Create an MapDeclaration. * @param {ModelFile} modelFile - the ModelFile for this class * @param {Object} ast - The AST created by the parser * @throws {IllegalModelException} */ constructor(modelFile: any, ast: any); /** * Process the AST and build the model * * @throws {IllegalModelException} * @private */ process(): void; /** * Semantic validation of the structure of this class. * * @throws {IllegalModelException} * @protected */ validate(): void; /** * Returns the fully qualified name of this class. * The name will include the namespace if present. * * @return {string} the fully-qualified name of this class */ getFullyQualifiedName(): any; /** * Returns the ModelFile that defines this class. * * @public * @return {ModelFile} the owning ModelFile */ getModelFile(): any; /** * Returns the short name of a class. This name does not include the * namespace from the owning ModelFile. * * @return {string} the short name of this class */ getName(): any; /** * Returns the type of the Map key property. * * @return {MapKeyType} the Map key property */ getKey(): any; /** * Returns the type of the Map Value property. * * @return {MapValueType} the Map Value property */ getValue(): any; /** * Returns the string representation of this class * @return {String} the string representation of the class */ toString(): string; /** * Returns the kind of declaration * * @return {string} what kind of declaration this is */ declarationKind(): string; /** * Returns true if this class is the definition of a class declaration. * * @return {boolean} true if the class is a class */ isMapDeclaration(): boolean; } export = MapDeclaration;