Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] Referencing Metamodels in jar-File
[ATL] Referencing Metamodels in jar-File [message #55368] Mon, 30 July 2007 22:22 Go to next message
Eclipse UserFriend
Originally posted by: rb_account.yahoo.de

Hello,

I would like to implement a plugin, witch is able to perform a
transformation.
The functionality is comparable with the transformation of an XML-File
into a model based on the XML metam odel within ATL.

The plugin-jar contains my meta model and transformation model. How to run
the transformation from java code is explained in the faqs. The remaining
question is: How do I reference the models within the jar-file?

Best regards

Rainer

--
Erstellt mit Operas revolutionärem E-Mail-Modul: http://www.opera.com/mail/
Re: [ATL] Referencing Metamodels in jar-File [message #55536 is a reply to message #55368] Wed, 01 August 2007 09:04 Go to previous message
Eclipse UserFriend
Originally posted by: Hugo.Bruneliere.univ-nantes.fr

Rainer Bernhard a écrit :
> Hello,
>

Hi Rainer,

> I would like to implement a plugin, witch is able to perform a
> transformation.
> The functionality is comparable with the transformation of an XML-File
> into a model based on the XML metam odel within ATL.
>

The ATL engine already integrates the XML Injector/Extractor (see the
org.eclipse.m2m.atl.engine.vm plugin, more precisely its
org.eclipse.m2m.atl.engine.extractors.xml and
org.eclipse.m2m.atl.engine.injectors.xml packages).

> The plugin-jar contains my meta model and transformation model. How to
> run the transformation from java code is explained in the faqs. The
> remaining question is: How do I reference the models within the jar-file?
>

Anyway, your problem does not seems to be directly related to the use of
ATL but more to the problem of retrieving a file from an archive in Java
(I think Java provides some APIs to do this). Then you can use the
"loadModel" method that requires the URI of the file storing the model
or an InputStream created from it.

> Best regards
>
> Rainer
>
> --Erstellt mit Operas revolutionärem E-Mail-Modul:
> http://www.opera.com/mail/

Best regards,

Hugo

--
--------------------------------------------------------
Hugo Bruneliere - R&D Engineer
ATLAS Group (INRIA & LINA) - University of Nantes
2, rue de la Houssiniere
44322 Nantes Cedex 3 - France
office +33 2 51 12 58 10 /\ cell.+33 6 07 42 45 30
EMail: Hugo.Bruneliere@univ-nantes.fr
http://www.sciences.univ-nantes.fr/lina/atl/
--------------------------------------------------------
Previous Topic:[ATL]IllegalStateException: Workspace is closed
Next Topic:[ATL] What happened to MM!pkg::element notation
Goto Forum:
  


Current Time: Tue Jan 19 22:42:49 GMT 2021

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

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

Back to the top