Java Reference
In-Depth Information
Figure 6-9
Operational QVT trace model
6.5.6 Leveraging OCL in EMF Models
As discussed in Section 3.2.4, “Applying OCL,” you can add OCL to annota-
tions in an EMF model and use them during code generation to provide imple-
mentations of constraints, method bodies, and derived features. M2M OML also
can interpret OCL statements in models before generation, which greatly helps
in writing QVT scripts that rely on these features. After being deployed, OCL
statements are invoked on model instances and also are available to deployed
transformations.
6.5.7 Ant Tasks
A set of Ant tasks is also available for invoking QVTO transformations
heedlessly or in a transformation sequence with other M2M or M2T trans-
formations, for example. The following is an example of how the
qvto.interpretedTransformation task is configured. The order of
targeturidef elements matches the order of models defined in the transfor-
mation signature.
<qvto.interpretedTransformation
transformation="/product2epp.qvto"
tracefile="/product2epp.qvtotrace"
resulturiproperty="config">
<targeturidef
targeturi="platform:/resource/example/modeling.product"
/>
Search WWH ::




Custom Search