Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL]: Getting data from XMI input model
[ATL]: Getting data from XMI input model [message #81709] Tue, 20 May 2008 12:25
Eclipse UserFriend
Originally posted by: amehmood.sophia.inria.fr

hello all,

I am new to ATL m2m transformation. I am working on a project in which i
use class diagrams in Papyrus UML and then use its xmi as a model input (i
am not talking abt metamodel) to the ATL Eclipse tool.

I wanted to know that is there any way to get the values from the xmi
files bypassing the xml tags like 'eClassifiers' and 'eStructuralFeatures'.

Here is the code(reduced) that i m working with:

<?xml version="1.0" encoding="UTF-8"?>
<ecore:EPackage xmi:version="2.0"
xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
name="sampleFamilies"
nsURI="http:///sampleFamilies.ecore" nsPrefix="sampleFamilies">

<eClassifiers xsi:type="ecore:EClass" name="father">
<eStructuralFeatures xsi:type="ecore:EAttribute" name="firstName"
ordered="false" unique="false" lowerBound="1" eType="ecore:EDataType
http://www.eclipse.org/emf/2002/Ecore#//EString"
defaultValueLiteral="Jim"/>
</eClassifiers>
</ecore:EPackage>

in short how can i use the uml tool generated xmi and the ATL. I have
tried this example, but its quite unclear/complex for me.
http://wiki.eclipse.org/ATL_Howtos#How_do_I_use_extern_param eters_in_ATL_transformations.3F

kindly guide me to some better resource/answer.
thankx in advance,

-aamir-
INRIA, Sophia, France.
Previous Topic:[ATL] I need to get a org.eclipse.m2m.atl.adt.editor Java Files!
Next Topic:Load model from resource
Goto Forum:
  


Current Time: Thu Jun 20 05:43:25 GMT 2019

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

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

Back to the top