UNPKG

@tripsnek/tmf

Version:

TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)

60 lines 1.75 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EClassifierImpl = void 0; const enamed_element_impl_1 = require("./enamed-element-impl"); class EClassifierImpl extends enamed_element_impl_1.ENamedElementImpl { owner; classifierId = -1; // private instanceClassName!: string; // private instanceTypeName!: string; ePackage; constructor(owner, name) { super(name); this.owner = owner; } getEPackage() { return this.ePackage; } setEPackage(pkg) { //TODO: should handle inverse reference on both ends this.ePackage = pkg; } // public getInstanceClassName(): string { // return this.instanceClassName; // } // public setInstanceClassName(value: string): void { // this.instanceClassName = value; // } getClassifierId() { return this.classifierId; } setClassifierId(id) { this.classifierId = id; } // public getInstanceTypeName(): string { // return this.instanceTypeName; // } // public setInstanceTypeName(value: string): void { // this.instanceTypeName = value; // } // public getETypeParameters() { // throw new Error('Not implemented'); // } // public getInstanceClass(): string { // //not implemented // return this.getName(); // } // public setInstanceClass(value: string): void { // //not implemented // } getRootPackage() { if (!this.getEPackage()) return undefined; return this.getEPackage().getRootPackage(); } eContainer() { return this.ePackage; } } exports.EClassifierImpl = EClassifierImpl; //# sourceMappingURL=eclassifier-impl.js.map