UNPKG

@accordproject/concerto-core

Version:

Core Implementation for the Concerto Modeling Language

33 lines (32 loc) 953 B
import Property = require('./property'); /** * Class representing a value from a set of enumerated values * * @extends Property * @see See {@link Property} * @class * @memberof module:concerto-core */ declare class EnumValueDeclaration extends Property { /** * Create a EnumValueDeclaration. * @param {ClassDeclaration} parent - The owner of this property * @param {Object} ast - The AST created by the parser * @throws {IllegalModelException} */ constructor(parent: any, ast: any); /** * Validate the property * @param {ClassDeclaration} classDecl the class declaration of the property * @throws {IllegalModelException} * @private */ validate(classDecl: any): void; /** * Returns true if this class is the definition of a enum value. * * @return {boolean} true if the class is an enum value */ isEnumValue(): boolean; } export = EnumValueDeclaration;