[ATL] Standalone ATL transformation of UML2 [message #66032] |
Wed, 14 November 2007 06:03  |
Eclipse User |
|
|
|
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 #66095 is a reply to message #66053] |
Wed, 14 November 2007 09:06  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.05313 seconds