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.profile.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.profile.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#_EfRZoK86EdieaYgxtVWN8Q"/>
</packageImport>
<packageImport xmi:id="_Boi4AiCHEd295fFtbenY_w">
<importedPackage xmi:type="uml:Model"
href="pathmap://UML2_LIBRARIES/JavaPrimitiveTypes.library.uml2#_RjmyoK86EdieaYgxtVWN8Q"/>
</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