Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] uml2 model/profile in transformation
[ATL] uml2 model/profile in transformation [message #57533] Sat, 11 August 2007 11:58 Go to next message
Eclipse UserFriend
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
Re: [ATL] uml2 model/profile in transformation [message #57558 is a reply to message #57533] Sat, 11 August 2007 12:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gerard.marks.gmail.com

meant to say i get:

[am3.atl] java.lang.IllegalArgumentException:
java.lang.ClassCastException@4b048

when i run it!

thanks,

Gerry.
Re: [ATL] uml2 model/profile in transformation [message #57632 is a reply to message #57558] Mon, 13 August 2007 17:08 Go to previous message
beaperez Mising name is currently offline beaperez Mising nameFriend
Messages: 81
Registered: July 2009
Member
Hello Gerard,
as Hugo told me in
http://dev.eclipse.org/newslists/news.eclipse.modeling.m2m/m sg01323.html,
you can use the build-3-xxx.xml file from
http://www.eclipse.org/gmt/modisco/useCases/PerformanceAnnot atedUmlStateCharts/
to inspire you. It helped me!! And don't forget to use de UML model
handler!! instead of the EMF to load a UML model!!

Best regards,
Bea



"Gerard" <gerard.marks@gmail.com> escribi
Previous Topic:[ATL] EMF named references supported ?
Next Topic:[ATL] [Announce] ATL 2.0.0RC2 is available
Goto Forum:
  


Current Time: Thu Apr 25 15:10:26 GMT 2024

Powered by FUDForum. Page generated in 0.03315 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top