@tripsnek/tmf
Version:
TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)
56 lines • 1.58 kB
JavaScript
import { ENamedElementImpl } from './enamed-element-impl';
export class EClassifierImpl extends 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;
}
}
//# sourceMappingURL=eclassifier-impl.js.map