0

In a model transformation I have native OCL query as string and I need to parse that OCL string and execute it in order to identify and select specific model element in the source model.

Is it possible to import eclipse MDT/OCL API in qvt-o code? like in java

In other word , can we follow the following example but directly in qvt by importing API to qvt code without using java and black-box?

(http://help.eclipse.org/kepler/index.jsp?topic=%2Forg.eclipse.ocl.doc%2Fhelp%2FPivotEvaluatingConstraints.html&cp=38_6_5 )

Thanks

4

1 回答 1

0

经过长时间的搜索,答案是否定的!

我们无法在 QVT-O 中导入 OCL API。在这种情况下,我们必须创建 Java 代码来解析 OCL 并执行它,然后在 QVT-O 中将其用作黑盒

谢谢

于 2013-12-25T13:56:36.640 回答