Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL] File generated with wrong nodes hierarch
[ATL] File generated with wrong nodes hierarch [message #81113] Tue, 13 May 2008 01:13 Go to next message
Geam Carlos is currently offline Geam CarlosFriend
Messages: 17
Registered: July 2009
Junior Member
Hi people,

when i run an uml2 atl transformation programmatically the generated model
dont has the model as root of tree. There contains any packages in the
first level of tree in the same level of model.

I expected a document with this hierarch:
-Model
-Package1
-class1
-class2
-package2
-class3
-class4

but i obtain an document with this hierach:
-model
-Package1
-class1
-class2
-Package2
-class3
-class4



Below follows the examples respectively:

<?xml version="1.0" encoding="UTF-8"?>
<uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:Profile_for_HW_PSM_NOVO1_0=" http:///Profile_for_HW_PSM_NOVO1_0_BhZHICCHEd295fFtbenY_w.pr ofile.uml2"
xmlns:UMLStandardProfile_0=" http:///UMLStandardProfile_0_BhiRECCHEd295fFtbenY_w.profile. uml2"
xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
xsi:schemaLocation=" http:///Profile_for_HW_PSM_NOVO1_0_BhZHICCHEd295fFtbenY_w.pr ofile.uml2
Profile_for_HW_PSM_NOVO1.profile.uml2#_Boi8HSCHEd295fFtbenY_ w
http:///UMLStandardProfile_0_BhiRECCHEd295fFtbenY_w.profile. uml2
UML_Standard_Profile.profile.uml2#_Boi8uiCHEd295fFtbenY_w"
xmi:id="_Boi4ACCHEd295fFtbenY_w" name="Data"
appliedProfile="_Boi4AyCHEd295fFtbenY_w _Boi4BiCHEd295fFtbenY_w
_Boi4CSCHEd295fFtbenY_w _Boi4DCCHEd295fFtbenY_w _Boi4DyCHEd295fFtbenY_w
_Boi4EiCHEd295fFtbenY_w">
<packageImport xmi:id="_Boi4ASCHEd295fFtbenY_w">
<importedPackage xmi:type="uml:Model"
href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86EdieaYgxtVWN8Q"/>
</packageImport>
<packageImport xmi:id="_Boi4AiCHEd295fFtbenY_w">
<importedPackage xmi:type="uml:Model"
href=" pathmap://UML2_LIBRARIES/JavaPrimitiveTypes.library.uml2#_Rj myoK86EdieaYgxtVWN8Q"/>
</packageImport>
<packageImport xmi:type="uml:ProfileApplication"
xmi:id="_Boi4AyCHEd295fFtbenY_w">
...


<?xml version="1.0" encoding="ISO-8859-1"?>
<xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:Profile_for_HealthWatchers1_0=" http:///Profile_for_HealthWatchers1_0_1dseshDCEd29TfJdSc3D-g .profile.uml2"
xmlns:Profile_for_model_aspects1_0=" http:///Profile_for_model_aspects1_0_xcy1ExDCEd29TfJdSc3D-g. profile.uml2"
xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML">
<uml:Package name="com.test.profile">
...
<uml:Model name="Data">
<packageImport xsi:type="uml:ProfileApplication">
<eAnnotations source="attributes">
...



Best regards

--
Geam Carlos
Re: [ATL] File generated with wrong nodes hierarch [message #81284 is a reply to message #81113] Thu, 15 May 2008 12:42 Go to previous message
William Piers is currently offline William PiersFriend
Messages: 297
Registered: July 2009
Senior Member
Hello,

If your transformation module correctly specifies that models contains
packages, there may be another error during the execution. Those kind of
problem happen when a transformation fails.
So you may have to check the error log.

Best regards,

William

Geam Carlos a écrit :
> Hi people,
>
> when i run an uml2 atl transformation programmatically the generated
> model dont has the model as root of tree. There contains any packages in
> the first level of tree in the same level of model.
>
> I expected a document with this hierarch:
> -Model
> -Package1
> -class1
> -class2
> -package2
> -class3
> -class4
>
> but i obtain an document with this hierach:
> -model
> -Package1
> -class1
> -class2
> -Package2
> -class3
> -class4
>
>
>
> Below follows the examples respectively:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <uml:Model xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:Profile_for_HW_PSM_NOVO1_0=" http:///Profile_for_HW_PSM_NOVO1_0_BhZHICCHEd295fFtbenY_w.pr ofile.uml2"
> xmlns:UMLStandardProfile_0=" http:///UMLStandardProfile_0_BhiRECCHEd295fFtbenY_w.profile. uml2"
> xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML"
> xsi:schemaLocation=" http:///Profile_for_HW_PSM_NOVO1_0_BhZHICCHEd295fFtbenY_w.pr ofile.uml2
> Profile_for_HW_PSM_NOVO1.profile.uml2#_Boi8HSCHEd295fFtbenY_ w
> http:///UMLStandardProfile_0_BhiRECCHEd295fFtbenY_w.profile. uml2
> UML_Standard_Profile.profile.uml2#_Boi8uiCHEd295fFtbenY_w"
> xmi:id="_Boi4ACCHEd295fFtbenY_w" name="Data"
> appliedProfile="_Boi4AyCHEd295fFtbenY_w _Boi4BiCHEd295fFtbenY_w
> _Boi4CSCHEd295fFtbenY_w _Boi4DCCHEd295fFtbenY_w _Boi4DyCHEd295fFtbenY_w
> _Boi4EiCHEd295fFtbenY_w">
> <packageImport xmi:id="_Boi4ASCHEd295fFtbenY_w">
> <importedPackage xmi:type="uml:Model"
> href=" pathmap://UML2_LIBRARIES/UML2PrimitiveTypes.library.uml2#_Ef RZoK86EdieaYgxtVWN8Q"/>
>
> </packageImport>
> <packageImport xmi:id="_Boi4AiCHEd295fFtbenY_w">
> <importedPackage xmi:type="uml:Model"
> href=" pathmap://UML2_LIBRARIES/JavaPrimitiveTypes.library.uml2#_Rj myoK86EdieaYgxtVWN8Q"/>
>
> </packageImport>
> <packageImport xmi:type="uml:ProfileApplication"
> xmi:id="_Boi4AyCHEd295fFtbenY_w">
> ...
>
>
> <?xml version="1.0" encoding="ISO-8859-1"?>
> <xmi:XMI xmi:version="2.0" xmlns:xmi="http://www.omg.org/XMI"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xmlns:Profile_for_HealthWatchers1_0=" http:///Profile_for_HealthWatchers1_0_1dseshDCEd29TfJdSc3D-g .profile.uml2"
> xmlns:Profile_for_model_aspects1_0=" http:///Profile_for_model_aspects1_0_xcy1ExDCEd29TfJdSc3D-g. profile.uml2"
> xmlns:uml="http://www.eclipse.org/uml2/1.0.0/UML">
> <uml:Package name="com.test.profile">
> ...
> <uml:Model name="Data">
> <packageImport xsi:type="uml:ProfileApplication">
> <eAnnotations source="attributes">
> ...
>
>
>
> Best regards
>
> --
> Geam Carlos
>
Previous Topic:[ATL] ATL install in Ganymede
Next Topic:[ATL] ClassCastException
Goto Forum:
  


Current Time: Tue Jul 16 02:12:23 GMT 2019

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

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

Back to the top