@tripsnek/tmf
Version:
TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)
35 lines • 1.09 kB
JavaScript
import { EStructuralFeatureImpl } from './estructural-feature-impl';
export class EReferenceImpl extends EStructuralFeatureImpl {
// private eRefType!: EClass;
eOpposite;
containment = false;
constructor(name, eContainingClass, eReferenceType) {
super(name, eReferenceType);
// if (eReferenceType) this.eRefType = eReferenceType;
if (eContainingClass)
this.setEContainingClass(eContainingClass);
}
// public getEReferenceType(): EClass {
// return this.eRefType;
// }
isContainer() {
return this.getEOpposite() !== undefined && this.getEOpposite().isContainment();
}
isContainment() {
return this.containment;
}
setContainment(containment) {
this.containment = containment;
}
// public isResolveProxies(): boolean {
// return false;
// }
// public setResolveProxies(value: boolean): void {}
getEOpposite() {
return this.eOpposite;
}
setEOpposite(value) {
this.eOpposite = value;
}
}
//# sourceMappingURL=ereference-impl.js.map