Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Load EA models
Load EA models [message #607454] Thu, 12 April 2007 16:28
Robert Lario is currently offline Robert LarioFriend
Messages: 34
Registered: July 2009
Member
I would like to load UML models created with Sparx EA. I have generated a
simple model in EA 6.5.805 and have exported the model via it's XMI export
tool using format "UML 2.1 (XMI 2.1)".

My model is as follow :
Package : PIM
Package : Top Package
Class : Person
Operation : personOperation
Attribute : lastName
Class : Carla <<LariosStereotype>>
Generalizes : Persion


With a little change from xmlns:uml="http://schema.omg.org/spec/UML/2.1" to
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML" Everything appears to load
correctly except the stereotype "LariosStereotype" on Carla.

Can anyone give me some direction on how to realize the stereotype info in
the model too? Here is the XMI that I am using:

<?xml version="1.0" encoding="windows-1252" ?>
- <xmi:XMI xmi:version="2.1" xmlns:uml="http://schema.omg.org/spec/UML/2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:thecustomprofile="http://www.sparxsystems.com/profiles/thecustomprofile/1.0">
- <uml:Model xmi:type="uml:Model" name="EA_Model" visibility="public">
- <packagedElement xmi:type="uml:Package"
xmi:id="EAPK_36F1DA6B_DA1F_4591_8645_E71B7CBF899A" name="Model"
visibility="public">
- <packagedElement xmi:type="uml:Package"
xmi:id="EAPK_0EF64101_C720_49b8_90EA_CBE7AFC25E5D" name="PIM"
visibility="public">
- <packagedElement xmi:type="uml:Package"
xmi:id="EAPK_105850AF_46EB_4bc1_8A2B_5CD0675F056E" name="Top Package"
visibility="public">
- <packagedElement xmi:type="uml:Class"
xmi:id="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6" name="Carla"
visibility="public">
<generalization xmi:type="uml:Generalization"
xmi:id="EAID_624D69BD_3E4A_4861_BB38_8BE5164BA3F0"
general="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2" />
</packagedElement>
- <packagedElement xmi:type="uml:Class"
xmi:id="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2" name="Person"
visibility="public">
- <ownedAttribute xmi:type="uml:Property"
xmi:id="EAID_18D7E0CB_B1E5_4d21_99EB_C525C32DD0DC" name="lastName"
visibility="private" isDerived="false">
<lowerValue xmi:type="uml:LiteralInteger"
xmi:id="EAID_LI000001_B1E5_4d21_99EB_C525C32DD0DC" value="1" />
<upperValue xmi:type="uml:LiteralInteger"
xmi:id="EAID_LI000002_B1E5_4d21_99EB_C525C32DD0DC" value="1" />
</ownedAttribute>
<ownedOperation xmi:id="EAID_9B905DD2_9AD7_45cd_956F_80BA39FE6CC9"
name="personOperation" visibility="public" concurrency="sequential" />
</packagedElement>
</packagedElement>
</packagedElement>
</packagedElement>
<thecustomprofile:LariosStereotype
base_Class="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6" />
- <uml:Profile xmi:version="2.1"
xmlns:uml="http://schema.omg.org/spec/UML/2.1/uml.xml"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1" xmi:id="thecustomprofile"
nsPrefix="thecustomprofile" name="thecustomprofile"
metamodelReference="mmref01">
- <ownedComment xmi:type="uml:Comment" xmi:id="comment01"
annotatedElement="thecustomprofile">
<body>Version:1.0</body>
</ownedComment>
- <packageImport xmi:id="mmref01">
<importedPackage href="http://schema.omg.org/spec/UML/2.1/uml.xml" />
</packageImport>
- <packagedElement xmi:type="uml:Stereotype" xmi:id="LariosStereotype"
name="LariosStereotype">
- <ownedAttribute xmi:type="uml:Property"
xmi:id="LariosStereotype-base_Class" name="base_Class"
association="Class_LariosStereotype">
<type href="http://schema.omg.org/spec/UML/2.1/uml.xml#Class" />
</ownedAttribute>
</packagedElement>
- <packagedElement xmi:type="uml:Extension" xmi:id="Class_LariosStereotype"
name="A_Class_LariosStereotype" memberEnd="extension_LariosStereotype
LariosStereotype-base_Class">
<ownedEnd xmi:id="extension_LariosStereotype"
name="extension_LariosStereotype" type="LariosStereotype" isComposite="true"
lower="0" upper="1" memberEnd="extension_LariosStereotype
LariosStereotype-base_Class" />
</packagedElement>
</uml:Profile>
</uml:Model>
- <xmi:Extension extender="Enterprise Architect" extenderID="6.5">
- <elements>
- <element xmi:idref="EAPK_36F1DA6B_DA1F_4591_8645_E71B7CBF899A">
<packageproperties />
<paths />
<times lastloaddate="2007-02-14 08:23:48" />
<flags iscontrolled="FALSE" isprotected="FALSE" usedtd="FALSE"
logxml="FALSE" packageFlags="isModel=1;" />
</element>
- <element xmi:idref="EAPK_0EF64101_C720_49b8_90EA_CBE7AFC25E5D"
xmi:type="uml:Package" name="PIM" scope="public">
<model package2="EAID_0EF64101_C720_49b8_90EA_CBE7AFC25E5D"
package="EAPK_36F1DA6B_DA1F_4591_8645_E71B7CBF899A" tpos="6" ea_localid="21"
ea_eleType="package" />
<properties isSpecification="false" sType="Package" nType="0"
scope="public" />
<project phase="1.0" created="2007-02-14 08:23:47" modified="2007-02-14
08:23:47" complexity="1" status="Proposed" />
<code gentype="Java" />
<style
appearance=" BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwi mLanes=0;HSwimLanes=0;BorderStyle=0; "
/>
<modelDocument />
<tags />
<xrefs />
<extendedProperties tagged="0" package_name="Model" />
<packageproperties tpos="6" />
<paths />
<times />
<flags iscontrolled="FALSE" isnamespace="1" isprotected="FALSE"
batchsave="0" batchload="0" usedtd="FALSE" logxml="FALSE"
packageFlags="isModel=1;VICON=3;" />
</element>
- <element xmi:idref="EAPK_105850AF_46EB_4bc1_8A2B_5CD0675F056E"
xmi:type="uml:Package" name="Top Package" scope="public">
<model package2="EAID_105850AF_46EB_4bc1_8A2B_5CD0675F056E"
package="EAPK_0EF64101_C720_49b8_90EA_CBE7AFC25E5D" tpos="0" ea_localid="22"
ea_eleType="package" />
<properties isSpecification="false" sType="Package" nType="0"
scope="public" />
<project version="1.0" phase="1.0" created="2007-02-14 08:24:30"
modified="2007-02-14 08:24:30" complexity="1" status="Proposed" />
<code gentype="Java" />
<style
appearance=" BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwi mLanes=0;HSwimLanes=0;BorderStyle=0; "
/>
<modelDocument />
<tags />
<xrefs />
<extendedProperties tagged="0" package_name="PIM" />
<packageproperties version="1.0" />
<paths />
<times />
<flags iscontrolled="FALSE" isprotected="FALSE" batchsave="0"
batchload="0" usedtd="FALSE" logxml="FALSE" />
</element>
- <element xmi:idref="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6"
xmi:type="uml:Class" name="Carla" scope="public">
<model package="EAPK_105850AF_46EB_4bc1_8A2B_5CD0675F056E" tpos="0"
ea_localid="45" ea_eleType="element" />
<properties isSpecification="false" sType="Class" nType="0" scope="public"
stereotype="LariosStereotype" isRoot="false" isLeaf="false"
isAbstract="false" isActive="false" />
<project version="1.0" phase="1.0" created="2007-02-14 08:25:25"
modified="2007-04-11 14:20:39" complexity="1" status="Proposed" />
<code gentype="Java" />
<style
appearance=" BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwi mLanes=0;HSwimLanes=0;BorderStyle=0; "
/>
<modelDocument />
<tags />
<xrefs
value=" $XREFPROP=$XID={B93A4510-F45B-439c-9E76-775CBCE02F2F}$XID;$N AM=CustomProperties$NAM;$TYP=element
property$TYP;$VIS=Public$VIS;$DES=@PROP=@NAME=isActive@ENDNAME;@TYPE=Boolean@ENDTYPE ;@VALU=@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;$DES;$CLT={B622E200- 72AB-4b11-9975-5F7D3E8273E6}$CLT;$SUP= <none> $SUP;$ENDXREF;$XREFPROP=$XID={AA8FE33D-F5FC-44d0-83DA-0AEC3B 2702C6}$XID;$NAM=Stereotypes$NAM;$TYP=element
property$TYP;$VIS=Public$VIS;$DES=@STEREO;Name=LariosStereot ype;GUID={0D237653-9A0B-44eb-AB35-9F89DC0D792D};@ENDSTEREO;$ DES;$CLT={B622E200-72AB-4b11-9975-5F7D3E8273E6}$CLT;$SUP= <none>$SUP;$ENDXREF;"
/>
<extendedProperties tagged="0" package_name="Top Package" />
- <links>
<Generalization xmi:id="EAID_624D69BD_3E4A_4861_BB38_8BE5164BA3F0"
start="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6"
end="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2" />
</links>
</element>
- <element xmi:idref="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2"
xmi:type="uml:Class" name="Person" scope="public">
<model package="EAPK_105850AF_46EB_4bc1_8A2B_5CD0675F056E" tpos="0"
ea_localid="46" ea_eleType="element" />
<properties isSpecification="false" sType="Class" nType="0" scope="public"
isRoot="false" isLeaf="false" isAbstract="false" isActive="false" />
<project version="1.0" phase="1.0" created="2007-02-14 08:24:37"
modified="2007-02-14 08:25:05" complexity="1" status="Proposed" />
<code gentype="Java" />
<style
appearance=" BackColor=-1;BorderColor=-1;BorderWidth=-1;FontColor=-1;VSwi mLanes=0;HSwimLanes=0;BorderStyle=0; "
/>
<modelDocument />
<tags />
<xrefs
value=" $XREFPROP=$XID={9A5C423C-0B3A-458e-B5B5-D6A98DAB43E1}$XID;$N AM=CustomProperties$NAM;$TYP=element
property$TYP;$VIS=Public$VIS;$DES=@PROP=@NAME=isActive@ENDNAME;@TYPE=Boolean@ENDTYPE ;@VALU=@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;$DES;$CLT={3D4BC111- 6151-4d49-A6C7-354860C65AF2}$CLT;$SUP= <none>$SUP;$ENDXREF;"
/>
<extendedProperties tagged="0" package_name="Top Package" />
- <attributes>
- <attribute xmi:idref="EAID_18D7E0CB_B1E5_4d21_99EB_C525C32DD0DC"
name="lastName" scope="Private">
<initial />
<documentation />
<model ea_localid="6" ea_guid="{18D7E0CB-B1E5-4d21-99EB-C525C32DD0DC}" />
<properties type="String" derived="0" collection="false" duplicates="0"
changeability="changeable" />
<coords ordered="0" scale="0" />
<containment containment="Not Specified" position="1000" />
<stereotype />
<bounds lower="1" upper="1" />
<options />
<style />
<styleex value="volatile=0;" />
<tags />
<xrefs />
</attribute>
</attributes>
- <operations>
- <operation xmi:idref="EAID_9B905DD2_9AD7_45cd_956F_80BA39FE6CC9"
name="personOperation" scope="Public">
<properties position="0" />
<stereotype />
<model ea_guid="{9B905DD2-9AD7-45cd-956F-80BA39FE6CC9}" ea_localid="6" />
<type type="void" const="false" static="false" isAbstract="false"
synchronised="0" concurrency="Sequential" returnarray="0" pure="0"
isQuery="false" />
<behaviour />
<code />
<style />
<styleex />
<documentation />
<tags />
- <parameters>
- <parameter xmi:idref="EAID_RETURNID_9AD7_45cd_956F_80BA39FE6CC9"
visibility="public">
<properties pos="0" type="void" const="false"
ea_guid="{RETURNID-9AD7-45cd-956F-80BA39FE6CC9}" />
<style />
<styleex />
<documentation />
<tags />
<xrefs />
</parameter>
</parameters>
<xrefs />
</operation>
</operations>
- <links>
<Generalization xmi:id="EAID_624D69BD_3E4A_4861_BB38_8BE5164BA3F0"
start="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6"
end="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2" />
</links>
</element>
</elements>
- <connectors>
- <connector xmi:idref="EAID_624D69BD_3E4A_4861_BB38_8BE5164BA3F0">
- <source xmi:idref="EAID_B622E200_72AB_4b11_9975_5F7D3E8273E6">
<model ea_localid="45" type="Class" name="Carla" />
<role visibility="Public" targetScope="instance" />
<type aggregation="none" containment="Unspecified" />
<constraints />
<modifiers isOrdered="false" changeable="none" isNavigable="false" />
<style value="Union=0;Derived=0;AllowDuplicates=0;" />
<documentation />
<xrefs />
<tags />
</source>
- <target xmi:idref="EAID_3D4BC111_6151_4d49_A6C7_354860C65AF2">
<model ea_localid="46" type="Class" name="Person" />
<role visibility="Public" targetScope="instance" />
<type aggregation="none" containment="Unspecified" />
<constraints />
<modifiers isOrdered="false" changeable="none" isNavigable="true" />
<style value="Union=0;Derived=0;AllowDuplicates=0;" />
<documentation />
<xrefs />
<tags />
</target>
<model ea_localid="13" />
<properties ea_type="Generalization" direction="Source -> Destination" />
<documentation />
<appearance linemode="3" linecolor="-1" linewidth="0" seqno="0"
headStyle="0" lineStyle="0" />
<labels />
<extendedProperties virtualInheritance="0" />
<style />
<xrefs
value=" $XREFPROP=$XID={CBB8D2A8-9061-4030-86DC-72958FF2E33F}$XID;$N AM=CustomProperties$NAM;$TYP=connector
property$TYP;$VIS=Public$VIS;$DES=@PROP=@NAME=isSubstitutable@ENDNAME;@TYPE=Boolean@ENDTYPE ;@VALU=@ENDVALU;@PRMT=@ENDPRMT;@ENDPROP;$DES;$CLT={624D69BD- 3E4A-4861-BB38-8BE5164BA3F0}$CLT;$SUP= <none>$SUP;$ENDXREF;"
/>
<tags />
</connector>
</connectors>
</xmi:Extension>
</xmi:XMI>
Previous Topic:metamodel modifications
Next Topic:[Announce] MDT UML2 2.1.0 I200704121352 is available
Goto Forum:
  


Current Time: Fri Apr 26 08:27:37 GMT 2024

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

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

Back to the top