@tripsnek/tmf
Version:
TypeScript Modeling Framework - A TypeScript port of the Eclipse Modeling Framework (EMF)
26 lines • 765 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.EParameterImpl = void 0;
const etyped_element_impl_1 = require("./etyped-element-impl");
class EParameterImpl extends etyped_element_impl_1.ETypedElementImpl {
eOperation;
constructor(name, eType, eOperation) {
super(name, eType);
if (eOperation)
this.eOperation = eOperation;
}
setEOperation(op) {
this.eOperation = op;
}
getEOperation() {
return this.eOperation;
}
isOptional() {
return this.getLowerBound() === 0 && this.getUpperBound() === 1;
}
eContainer() {
return this.eOperation;
}
}
exports.EParameterImpl = EParameterImpl;
//# sourceMappingURL=eparameter-impl.js.map