[ATL] uml2 model/profile in transformation [message #57533] |
Sat, 11 August 2007 11:58 ![Go to next message Go to next message](theme/Solstice/images/down.png) |
Eclipse User![Friend of Eclipse Friend](/donate/web-api/friends_decorator.php?email=) |
|
|
|
Originally posted by: gerard.marks.gmail.com
Hi all,
Does anyone know how to load a uml2 model or profiled model (created in
uml2 editor) using ANT so that it can be used in a transformation to
output a uml profiled model.
ANT i have:
<target name="LM_WSDLToUMLClass">
<am3.loadModel modelHandler="EMF" name="UML2" metamodel="MOF"
nsURI="http://www.eclipse.org/uml2/2.0.0/UML"/>
<am3.loadModel modelHandler="EMF" name="umlModel" metamodel="UML2"
nsURI="MetaModels/ExtendedPO2.uml"/>
<am3.loadModel modelHandler="EMF" name="XML" metamodel="MOF"
path="MetaModels/XML.ecore"/>
<am3.loadModel modelHandler="EMF" name="wsdl1" metamodel="XML"
path="Output/DCBFundTransferService.ecore"/>
<am3.loadModel modelHandler="EMF" name="wsdl2" metamodel="XML"
path="Output/DCBService.ecore"/>
</target>
<target name="TF_WSDLToUMLClass" description="Perform WSDLToUMLClass
transform" depends="LM_WSDLToUMLClass">
<am3.atl path="Transforms/XMLtoUML.atl">
<inModel name="XML" model="XML"/>
<inModel name="IN" model="wsdl1"/>
<inModel name="IN2" model="wsdl2"/>
<inModel name="UML" model="umlModel"/>
<outModel name="OUT" model="outModel" metamodel="UML2"
path="Models/y.ecore"/>
</am3.atl>
<am3.saveModel model="outModel" path="Models/y.ecore"/>
</target>
ATL header:
module XMLtoUML; -- Module Template
create OUT : UML from IN : XML, IN2 : XML;
thanks a lot in advance!
Gerry
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03739 seconds