UNPKG

@tripsnek/tmf

Version:

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

39 lines 1.27 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.EReferenceImpl = void 0; const estructural_feature_impl_1 = require("./estructural-feature-impl"); class EReferenceImpl extends estructural_feature_impl_1.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; } } exports.EReferenceImpl = EReferenceImpl; //# sourceMappingURL=ereference-impl.js.map