Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Standalone ATL transformation of UML2
[ATL] Standalone ATL transformation of UML2 [message #66032] Wed, 14 November 2007 11:03 Go to next message
No real name is currently offline No real nameFriend
Messages: 33
Registered: July 2009
Member
Hi,

I've been trying to implement a simple java launcher for ATL
transforming UML2 model files. But I fail already when I try to load the
metamodel for the UML2 models.


Using the following code fails naturally with a FileNotFoundException:

ASMModel uml2MetaModel = ((AtlEMFModelHandler)AtlModelHandler.
getDefault(AtlModelHandler.AMH_EMF)).loadModel("uml",
AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF).getMof() ,
"http://www.eclipse.org/uml2/2.1.0/UML");


In the Eclipse Plugin I use the options:
Metamodel: uml: uri:http://www.eclipse.org/uml2/2.1.0/UML
Model Handler: EMF

What do I have to use as URI or is my beginning completly wrong? It
would be nice if someone could help me getting startet or has already
implemented a standalone UML2 transformation and could show me some
example code.


Best regards

Sebastian
Re: [ATL] Standalone ATL transformation of UML2 [message #66053 is a reply to message #66032] Wed, 14 November 2007 11:31 Go to previous messageGo to next message
William Piers is currently offline William PiersFriend
Messages: 301
Registered: July 2009
Senior Member
This is a multi-part message in MIME format.
--------------050004020903020701090007
Content-Type: text/plain; charset=ISO-8859-15; format=flowed
Content-Transfer-Encoding: 8bit

Hello,

The path you give to the loadModel function must have an url form, so
you must use :
"uri:http://www.eclipse.org/uml2/2.1.0/UML"
instead of
"http://www.eclipse.org/uml2/2.1.0/UML"

And then it should work.

Regards,

William

bfeater a
Re: [ATL] Standalone ATL transformation of UML2 [message #66095 is a reply to message #66053] Wed, 14 November 2007 14:06 Go to previous message
No real name is currently offline No real nameFriend
Messages: 33
Registered: July 2009
Member
Hi,

> Hello,
>
> The path you give to the loadModel function must have an url form, so
> you must use :
> "uri:http://www.eclipse.org/uml2/2.1.0/UML"
> instead of
> "http://www.eclipse.org/uml2/2.1.0/UML"
>
> And then it should work.
thanks, now the transformation works.

>
> Regards,
>
> William
>
> bfeater a écrit :
>> Hi,
>>
>> I've been trying to implement a simple java launcher for ATL
>> transforming UML2 model files. But I fail already when I try to load
>> the metamodel for the UML2 models.
>>
>>
>> Using the following code fails naturally with a FileNotFoundException:
>>
>> ASMModel uml2MetaModel = ((AtlEMFModelHandler)AtlModelHandler.
>> getDefault(AtlModelHandler.AMH_EMF)).loadModel("uml",
>> AtlModelHandler.getDefault(AtlModelHandler.AMH_EMF).getMof() ,
>> "http://www.eclipse.org/uml2/2.1.0/UML");
>>
>>
>> In the Eclipse Plugin I use the options:
>> Metamodel: uml: uri:http://www.eclipse.org/uml2/2.1.0/UML
>> Model Handler: EMF
>>
>> What do I have to use as URI or is my beginning completly wrong? It
>> would be nice if someone could help me getting startet or has already
>> implemented a standalone UML2 transformation and could show me some
>> example code.
>>
>>
>> Best regards
>>
>> Sebastian
Previous Topic:[Announce] The EclipseCon 2008 Submission Deadline is Rapidly Approaching.
Next Topic:[ATL][UML] Problem with UML transformation
Goto Forum:
  


Current Time: Thu Apr 25 14:25:01 GMT 2024

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

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

Back to the top