@accordproject/concerto-core
Version:
Core Implementation for the Concerto Modeling Language
38 lines (37 loc) • 1.11 kB
TypeScript
import Property = require('./property');
/**
* Class representing a relationship between model elements
* @extends Property
* @see See {@link Property}
*
* @class
* @memberof module:concerto-core
*/
declare class RelationshipDeclaration extends Property {
/**
* Create a Relationship.
* @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}
* @protected
*/
validate(classDecl: any): void;
/**
* Returns a string representation of this property
* @return {String} the string version of the property.
*/
toString(): string;
/**
* Returns true if this class is the definition of a relationship.
*
* @return {boolean} true if the class is a relationship
*/
isRelationship(): boolean;
}
export = RelationshipDeclaration;