Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » ATL » Several XML Files into one UML
Several XML Files into one UML [message #990994] Sun, 16 December 2012 14:08 Go to next message
Tex Iano is currently offline Tex IanoFriend
Messages: 99
Registered: February 2012
Member
Hi,

I have the following situation:

I have a lot of XML files (XSD files, XML files based on custom XSD etc.) with cross-references (e.g. in one XSD another XSD is imported and types defined in this file are refined etc.). Now I want to create one UML model from these files.

Is this possible with ATL? Currently I am using ATL only that way:

One file as input => one file as output.

But how do I work with ATL in this situation? The number of input files can differ and everything is expected to be part of one big model.

Is this possible at all?

Regards,

Tex

[Updated on: Sun, 16 December 2012 14:12]

Report message to a moderator

Re: Several XML Files into one UML [message #991044 is a reply to message #990994] Mon, 17 December 2012 07:45 Go to previous messageGo to next message
Federico Toledo is currently offline Federico ToledoFriend
Messages: 97
Registered: April 2012
Location: Ciudad Real, Spain
Member
I have a transformation with two input files, and one output file

module transf;
create OUT : UML from IN : UML, UTP : UML;


Then, in the run configuration you need to specify every model involved with a correspondig file.

Also, you can use libraries (common operations) and superimposition, where you can configure different files. Take a look to the documentation with these ideas and for sure you are going to make it work Smile

bye!
Re: Several XML Files into one UML [message #991050 is a reply to message #990994] Mon, 17 December 2012 08:14 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

If you want a diversity of inputs you may find it better to define your
M2M as

Merge-instruction to Result

so that you merge instruction model references each of the input files
in a suitable way.

The merge instruction meta-model is almost certainly very simple, but
once you have one you can make it more useful.
Since it is so simple, it is very easy to maintain it with the Sample
Reflective Ecore Model editor.

Regards

Ed Willink

On 16/12/2012 14:08, Tex Iano wrote:
> Hi,
>
> I have the following situation:
>
> I have a lot of XML files (XSD files, XML files based on custom XSD
> etc.) with cross-references (e.g. in one XSD another XSD is imported
> and types defined in this file are refined etc.). Now I want to create
> one UML model from these files.
>
> Is this possible with ATL? Currently I am using ATL only that way:
>
> One file as input => one files as output.
>
> But how do I work with ATL in this situation? The number of input
> files can differ and everything is expected to be part of one big model.
>
> Is this possible at all?
>
> Regards,
>
> Michael
Previous Topic:Metamodel contains several classifiers with same name, then ClassCast exception
Next Topic:recursive helper
Goto Forum:
  


Current Time: Sat Apr 27 01:27:11 GMT 2024

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

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

Back to the top