Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » how to load uml model with stereotype info back ?
how to load uml model with stereotype info back ? [message #473437] Wed, 27 June 2007 19:11 Go to next message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Hi,All

I generated a uml model with stereotype info and export it to .uml file and
now I want to load the model back into the memeory from the file, but I lost
the stereotype info which is very import to me.
please forgive me the copy and paste.

the following file is generated using RSA with stereotype information at the
end. How do I load it back? I export model using the code like:
protected static void saveAll(org.eclipse.uml2.uml.Package package_,

URI uri) {


Resource resource = RESOURCE_SET.createResource(uri);

EList contents = resource.getContents();

contents.add(package_);

Iterator all = UMLUtil.getAllContents(package_,true,false);

while (all.hasNext()){

System.out.println("33333");

EObject eObject = (EObject) all.next();

if (eObject instanceof Element) {

contents

..addAll(((Element) eObject).getStereotypeApplications());

}

}

try {

resource.save(null);


System.out.println("Done.");

} catch (IOException ioe) {

System.out.println(ioe.getMessage());

}

but I do not know how to load it back, I struggled this problem for server
month, but cannot figure it out,please help me

Thanks,

Eric



<?xml version="1.0" encoding="UTF-8"?>
<xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13"
xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
.../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusI Ik9CvaQ ">
<uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
<eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g" source="uml2.diagrams"
references="_5TCZsiTPEdy_OefkKt3p9g">
<contents xmi:type="notation:Diagram" xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
type="Freeform" name="Main">
<styles xmi:type="umlnotation:UMLDiagramStyle"
xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
</contents>
</eAnnotations>
<packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
<importedPackage xmi:type="uml:Model"
href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
</packageImport>
<packagedElement xmi:type="uml:Activity"
xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
<eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g" source="uml2.diagrams">
<contents xmi:type="notation:Diagram"
xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
measurementUnit="Himetric">
<children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity Frame"
element="_5TCZtSTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
type="ActivityCompartment">
<children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
element="_5TCZ5iTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCZvSTPEdy_OefkKt3p9g" type="NameLabel">
<children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCZvyTPEdy_OefkKt3p9g" type="Name"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
</children>
<children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
element="_5TCZ5yTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
type="InPartitions"/>
<children xmi:id="_5TCZyCTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
</children>
<children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
element="_5TCZ6CTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
type="InPartitions"/>
<children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
</children>
<styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
</children>
<children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLFrameStyle"
xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
</children>
<styles xmi:type="umlnotation:UMLDiagramStyle"
xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
<edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
target="_5TCZwyTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
type="ActivityEdgeLabelCompartment">
<children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g" type="Stereotype"/>
<children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
type="ActivityEdgeLabel"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLConnectorStyle"
xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
70, -40, -7]"/>
</edges>
<edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
target="_5TCZyyTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
type="ActivityEdgeLabelCompartment">
<children xmi:id="_5TCZ4STPEdy_OefkKt3p9g" type="Stereotype"/>
<children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
type="ActivityEdgeLabel"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLConnectorStyle"
xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411, 121, 41,
6]"/>
</edges>
</contents>
</eAnnotations>
<node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
<guard xmi:type="uml:OpaqueExpression"
xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
<body></body>
</guard>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
</edge>
<edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
<guard xmi:type="uml:OpaqueExpression"
xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
<body></body>
</guard>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
</edge>
</packagedElement>
<packagedElement xmi:type="uml:Activity"
xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
<eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g" source="uml2.diagrams">
<contents xmi:type="notation:Diagram"
xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
measurementUnit="Himetric">
<children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity Frame"
element="_5TCZ7yTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
type="ActivityCompartment">
<children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
element="_5TCaMCTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g" type="NameLabel">
<children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCZ-STPEdy_OefkKt3p9g" type="Name"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
</children>
<children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
element="_5TCaMSTPEdy_OefkKt3p9g">
<children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
type="InPartitions"/>
<children xmi:id="_5TCaAiTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
</children>
<children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
element="_5TCaMiTPEdy_OefkKt3p9g">
<children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
type="InPartitions"/>
<children xmi:id="_5TCaCiTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
</children>
<children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
element="_5TCaMyTPEdy_OefkKt3p9g">
<children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
type="ImageCompartment">
<layoutConstraint xmi:type="notation:Size"
xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
</children>
<children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
type="Stereotype"/>
<children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
type="InPartitions"/>
<children xmi:id="_5TCaEiTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLShapeStyle"
xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
</children>
<styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
</children>
<children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
<styles xmi:type="umlnotation:UMLFrameStyle"
xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
</children>
<styles xmi:type="umlnotation:UMLDiagramStyle"
xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
<edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
target="_5TCZ_STPEdy_OefkKt3p9g">
<children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
type="ActivityEdgeLabelCompartment">
<children xmi:id="_5TCaHCTPEdy_OefkKt3p9g" type="Stereotype"/>
<children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
type="ActivityEdgeLabel"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLConnectorStyle"
xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116, 2,
20]"/>
</edges>
<edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
target="_5TCaBSTPEdy_OefkKt3p9g">
<children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
type="ActivityEdgeLabelCompartment">
<children xmi:id="_5TCaIyTPEdy_OefkKt3p9g" type="Stereotype"/>
<children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
type="ActivityEdgeLabel"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLConnectorStyle"
xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223, 38, -60,
1]"/>
<sourceAnchor xmi:type="notation:IdentityAnchor"
xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
</edges>
<edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
target="_5TCaDSTPEdy_OefkKt3p9g">
<children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
type="ActivityEdgeLabelCompartment">
<children xmi:id="_5TCaKyTPEdy_OefkKt3p9g" type="Stereotype"/>
<children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
type="ActivityEdgeLabel"/>
<layoutConstraint xmi:type="notation:Bounds"
xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
</children>
<styles xmi:type="umlnotation:UMLConnectorStyle"
xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
showStereotype="Text"/>
<bendpoints xmi:type="notation:RelativeBendpoints"
xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
107, -1, -20]"/>
</edges>
</contents>
</eAnnotations>
<node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
<node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
<edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
<guard xmi:type="uml:OpaqueExpression"
xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
<body></body>
</guard>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
</edge>
<edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
<guard xmi:type="uml:OpaqueExpression"
xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
<body></body>
</guard>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
</edge>
<edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
<guard xmi:type="uml:OpaqueExpression"
xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
<body></body>
</guard>
<weight xmi:type="uml:LiteralInteger"
xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
</edge>
</packagedElement>
<profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
<eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
</eAnnotations>
<appliedProfile
href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
</profileApplication>
<profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
<eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
</eAnnotations>
<appliedProfile
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
</profileApplication>
<profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
<eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
</eAnnotations>
<appliedProfile
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
</profileApplication>
<profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
<eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
</eAnnotations>
<appliedProfile
href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
</profileApplication>
<profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
<eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
source="http://www.eclipse.org/uml2/2.0.0/UML">
<references xmi:type="ecore:EPackage"
href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
</eAnnotations>
<appliedProfile
href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
</profileApplication>
</uml:Model>
<AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
<AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
<AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
<AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
<AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
<AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
</xmi:XMI>
Re: how to load uml model with stereotype info back ? [message #473438 is a reply to message #473437] Wed, 27 June 2007 19:35 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Eric,

Is the model that you attached to your posting the .emx or the result of
export to .uml? It appears to be the .emx since there is still notational
information and other info that will not be understood by the opensource
component.
What exactly do you mean by "but I lost the stereotype info which is very
import to me." ?

If you are trying to load the .emx back as you seem to want to do, you will
need to use RSA api's and customized resource sets.


- James.


"Eric" <gonghongyan@hotmail.com> wrote in message
news:f5ucp8$t1q$1@build.eclipse.org...
> Hi,All
>
> I generated a uml model with stereotype info and export it to .uml file
and
> now I want to load the model back into the memeory from the file, but I
lost
> the stereotype info which is very import to me.
> please forgive me the copy and paste.
>
> the following file is generated using RSA with stereotype information at
the
> end. How do I load it back? I export model using the code like:
> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
>
> URI uri) {
>
>
> Resource resource = RESOURCE_SET.createResource(uri);
>
> EList contents = resource.getContents();
>
> contents.add(package_);
>
> Iterator all = UMLUtil.getAllContents(package_,true,false);
>
> while (all.hasNext()){
>
> System.out.println("33333");
>
> EObject eObject = (EObject) all.next();
>
> if (eObject instanceof Element) {
>
> contents
>
> .addAll(((Element) eObject).getStereotypeApplications());
>
> }
>
> }
>
> try {
>
> resource.save(null);
>
>
> System.out.println("Done.");
>
> } catch (IOException ioe) {
>
> System.out.println(ioe.getMessage());
>
> }
>
> but I do not know how to load it back, I struggled this problem for server
> month, but cannot figure it out,please help me
>
> Thanks,
>
> Eric
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
3"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
>
xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g" source="uml2.diagrams"
> references="_5TCZsiTPEdy_OefkKt3p9g">
> <contents xmi:type="notation:Diagram"
xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
> type="Freeform" name="Main">
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
> </contents>
> </eAnnotations>
> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
> <importedPackage xmi:type="uml:Model"
> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
> </packageImport>
> <packagedElement xmi:type="uml:Activity"
> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
source="uml2.diagrams">
> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> measurementUnit="Himetric">
> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity Frame"
> element="_5TCZtSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
> type="ActivityCompartment">
> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
> element="_5TCZ5iTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
type="NameLabel">
> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g" type="Name"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
> showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
> </children>
> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
> element="_5TCZ5yTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
> </children>
> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
> element="_5TCZ6CTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
> </children>
> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLFrameStyle"
> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
> </children>
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
> target="_5TCZwyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
> 70, -40, -7]"/>
> </edges>
> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
> target="_5TCZyyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411, 121,
41,
> 6]"/>
> </edges>
> </contents>
> </eAnnotations>
> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> </packagedElement>
> <packagedElement xmi:type="uml:Activity"
> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
source="uml2.diagrams">
> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> measurementUnit="Himetric">
> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity Frame"
> element="_5TCZ7yTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
> type="ActivityCompartment">
> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
> element="_5TCaMCTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
type="NameLabel">
> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g" type="Name"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
> showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
> </children>
> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
> element="_5TCaMSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
> </children>
> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
> element="_5TCaMiTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
> </children>
> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
> element="_5TCaMyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
> </children>
> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLFrameStyle"
> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
> </children>
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
> target="_5TCZ_STPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116, 2,
> 20]"/>
> </edges>
> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
> target="_5TCaBSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223, 38, -60,
> 1]"/>
> <sourceAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
> </edges>
> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
> target="_5TCaDSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
> 107, -1, -20]"/>
> </edges>
> </contents>
> </eAnnotations>
> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> </packagedElement>
> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
> </eAnnotations>
> <appliedProfile
> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
> </eAnnotations>
> <appliedProfile
> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
> </eAnnotations>
> <appliedProfile
>
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
> </eAnnotations>
> <appliedProfile
>
href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
> </eAnnotations>
> <appliedProfile
> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
> </profileApplication>
> </uml:Model>
> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
> </xmi:XMI>
>
>
>
>
Re: how to load uml model with stereotype info back ? [message #473441 is a reply to message #473438] Wed, 27 June 2007 20:08 Go to previous messageGo to next message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Thanks for your quick reply James! I use the code like :

protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI uri)
{

Resource resource = RESOURCE_SET.createResource(uri);

EList contents = resource.getContents();

contents.add(package_);

Iterator all = UMLUtil.getAllContents(package_,true,false);

while (all.hasNext()){

EObject eObject = (EObject) all.next();

if (eObject instanceof Element) {

contents

..addAll(((Element) eObject).getStereotypeApplications());

}

}



try {

resource.save(null);


} catch (IOException ioe) {

System.out.println(ioe.getMessage());

}

}

to get the model and save it. it is a .uml model not the emx one.

since I need the stereotype information to modify the one I loaded(I need to
create a new model based on the stereotype ), so the tagged value of the
stereotype
are very import to me.

Another alternative solution would be, I do not export the model, I copy a
model which generated from RSA (contains the stereotype information )and
modify it (since I cannot modify the one RSA generated, otherwise RSA will
crash)
and I already did, but I do not know how to get the model from the resouce.
the following is the code do the copy:

Resource old = model.eResource();

Resource newResource =
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension().appendSegment( "copy").appendFileExtension("uml"));

newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()));

now how to get the model from the newResource?

Thanks,

Eric


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f5ue5o$7ga$2@build.eclipse.org...
> Hi Eric,
>
> Is the model that you attached to your posting the .emx or the result of
> export to .uml? It appears to be the .emx since there is still
> notational
> information and other info that will not be understood by the opensource
> component.
> What exactly do you mean by "but I lost the stereotype info which is very
> import to me." ?
>
> If you are trying to load the .emx back as you seem to want to do, you
> will
> need to use RSA api's and customized resource sets.
>
>
> - James.
>
>
> "Eric" <gonghongyan@hotmail.com> wrote in message
> news:f5ucp8$t1q$1@build.eclipse.org...
>> Hi,All
>>
>> I generated a uml model with stereotype info and export it to .uml file
> and
>> now I want to load the model back into the memeory from the file, but I
> lost
>> the stereotype info which is very import to me.
>> please forgive me the copy and paste.
>>
>> the following file is generated using RSA with stereotype information at
> the
>> end. How do I load it back? I export model using the code like:
>> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
>>
>> URI uri) {
>>
>>
>> Resource resource = RESOURCE_SET.createResource(uri);
>>
>> EList contents = resource.getContents();
>>
>> contents.add(package_);
>>
>> Iterator all = UMLUtil.getAllContents(package_,true,false);
>>
>> while (all.hasNext()){
>>
>> System.out.println("33333");
>>
>> EObject eObject = (EObject) all.next();
>>
>> if (eObject instanceof Element) {
>>
>> contents
>>
>> .addAll(((Element) eObject).getStereotypeApplications());
>>
>> }
>>
>> }
>>
>> try {
>>
>> resource.save(null);
>>
>>
>> System.out.println("Done.");
>>
>> } catch (IOException ioe) {
>>
>> System.out.println(ioe.getMessage());
>>
>> }
>>
>> but I do not know how to load it back, I struggled this problem for
>> server
>> month, but cannot figure it out,please help me
>>
>> Thanks,
>>
>> Eric
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>
> xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
> 3"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
>> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
>> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
>>
> xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
>> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
>> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
>> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g" source="uml2.diagrams"
>> references="_5TCZsiTPEdy_OefkKt3p9g">
>> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
>> type="Freeform" name="Main">
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
>> </contents>
>> </eAnnotations>
>> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
>> <importedPackage xmi:type="uml:Model"
>> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
>> </packageImport>
>> <packagedElement xmi:type="uml:Activity"
>> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
>> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
> source="uml2.diagrams">
>> <contents xmi:type="notation:Diagram"
>> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
>> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
>> measurementUnit="Himetric">
>> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity
>> Frame"
>> element="_5TCZtSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
>> type="ActivityCompartment">
>> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
>> element="_5TCZ5iTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
> type="NameLabel">
>> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g"
>> type="Name"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
>> showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
>> </children>
>> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
>> element="_5TCZ5yTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
>> </children>
>> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
>> element="_5TCZ6CTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
>> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
>> </children>
>> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLFrameStyle"
>> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
>> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
>> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
>> target="_5TCZwyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
>> 70, -40, -7]"/>
>> </edges>
>> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
>> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
>> target="_5TCZyyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411, 121,
> 41,
>> 6]"/>
>> </edges>
>> </contents>
>> </eAnnotations>
>> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
>> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
>> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
>> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
>> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
>> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
>> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> </packagedElement>
>> <packagedElement xmi:type="uml:Activity"
>> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
>> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
> source="uml2.diagrams">
>> <contents xmi:type="notation:Diagram"
>> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
>> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
>> measurementUnit="Himetric">
>> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity
>> Frame"
>> element="_5TCZ7yTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
>> type="ActivityCompartment">
>> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
>> element="_5TCaMCTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
> type="NameLabel">
>> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g"
>> type="Name"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
>> showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
>> </children>
>> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
>> element="_5TCaMSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
>> </children>
>> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
>> element="_5TCaMiTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
>> </children>
>> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
>> element="_5TCaMyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
>> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
>> </children>
>> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLFrameStyle"
>> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
>> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
>> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
>> target="_5TCZ_STPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116, 2,
>> 20]"/>
>> </edges>
>> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
>> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
>> target="_5TCaBSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,
>> 38, -60,
>> 1]"/>
>> <sourceAnchor xmi:type="notation:IdentityAnchor"
>> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
>> </edges>
>> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
>> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
>> target="_5TCaDSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
>> 107, -1, -20]"/>
>> </edges>
>> </contents>
>> </eAnnotations>
>> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
>> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
>> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
>> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
>> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
>> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
>> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
>> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
>> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
>> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> </packagedElement>
>> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
>> </eAnnotations>
>> <appliedProfile
>> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
>> </eAnnotations>
>> <appliedProfile
>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
>> </eAnnotations>
>> <appliedProfile
>>
> href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
>> </eAnnotations>
>> <appliedProfile
>>
> href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
>> </eAnnotations>
>> <appliedProfile
>> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
>> </profileApplication>
>> </uml:Model>
>> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
>> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
>> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
>> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
>> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
>> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
>> </xmi:XMI>
>>
>>
>>
>>
>
>
Re: how to load uml model with stereotype info back ? [message #473447 is a reply to message #473441] Thu, 28 June 2007 13:19 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Eric,

So the model you attached to the original thread is just an .emx model that
you renamed with .uml extension?
If that is the case you won't be able to use opensource API to reopen it,
you need to use RSA api.

- James.



"Eric" <gonghongyan@hotmail.com> wrote in message
news:f5ug4m$mb8$1@build.eclipse.org...
> Thanks for your quick reply James! I use the code like :
>
> protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI
uri)
> {
>
> Resource resource = RESOURCE_SET.createResource(uri);
>
> EList contents = resource.getContents();
>
> contents.add(package_);
>
> Iterator all = UMLUtil.getAllContents(package_,true,false);
>
> while (all.hasNext()){
>
> EObject eObject = (EObject) all.next();
>
> if (eObject instanceof Element) {
>
> contents
>
> .addAll(((Element) eObject).getStereotypeApplications());
>
> }
>
> }
>
>
>
> try {
>
> resource.save(null);
>
>
> } catch (IOException ioe) {
>
> System.out.println(ioe.getMessage());
>
> }
>
> }
>
> to get the model and save it. it is a .uml model not the emx one.
>
> since I need the stereotype information to modify the one I loaded(I need
to
> create a new model based on the stereotype ), so the tagged value of the
> stereotype
> are very import to me.
>
> Another alternative solution would be, I do not export the model, I copy a
> model which generated from RSA (contains the stereotype information )and
> modify it (since I cannot modify the one RSA generated, otherwise RSA will
> crash)
> and I already did, but I do not know how to get the model from the
resouce.
> the following is the code do the copy:
>
> Resource old = model.eResource();
>
> Resource newResource =
>
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension()
..appendSegment("copy").appendFileExtension("uml"));
>
>
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()
));
>
> now how to get the model from the newResource?
>
> Thanks,
>
> Eric
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f5ue5o$7ga$2@build.eclipse.org...
> > Hi Eric,
> >
> > Is the model that you attached to your posting the .emx or the result of
> > export to .uml? It appears to be the .emx since there is still
> > notational
> > information and other info that will not be understood by the opensource
> > component.
> > What exactly do you mean by "but I lost the stereotype info which is
very
> > import to me." ?
> >
> > If you are trying to load the .emx back as you seem to want to do, you
> > will
> > need to use RSA api's and customized resource sets.
> >
> >
> > - James.
> >
> >
> > "Eric" <gonghongyan@hotmail.com> wrote in message
> > news:f5ucp8$t1q$1@build.eclipse.org...
> >> Hi,All
> >>
> >> I generated a uml model with stereotype info and export it to .uml file
> > and
> >> now I want to load the model back into the memeory from the file, but I
> > lost
> >> the stereotype info which is very import to me.
> >> please forgive me the copy and paste.
> >>
> >> the following file is generated using RSA with stereotype information
at
> > the
> >> end. How do I load it back? I export model using the code like:
> >> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
> >>
> >> URI uri) {
> >>
> >>
> >> Resource resource = RESOURCE_SET.createResource(uri);
> >>
> >> EList contents = resource.getContents();
> >>
> >> contents.add(package_);
> >>
> >> Iterator all = UMLUtil.getAllContents(package_,true,false);
> >>
> >> while (all.hasNext()){
> >>
> >> System.out.println("33333");
> >>
> >> EObject eObject = (EObject) all.next();
> >>
> >> if (eObject instanceof Element) {
> >>
> >> contents
> >>
> >> .addAll(((Element) eObject).getStereotypeApplications());
> >>
> >> }
> >>
> >> }
> >>
> >> try {
> >>
> >> resource.save(null);
> >>
> >>
> >> System.out.println("Done.");
> >>
> >> } catch (IOException ioe) {
> >>
> >> System.out.println(ioe.getMessage());
> >>
> >> }
> >>
> >> but I do not know how to load it back, I struggled this problem for
> >> server
> >> month, but cannot figure it out,please help me
> >>
> >> Thanks,
> >>
> >> Eric
> >>
> >>
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <xmi:XMI xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>
> >
xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
> > 3"
> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> >> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> >> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> >> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
> >>
> >
xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
> >> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
> >> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
> >> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"
source="uml2.diagrams"
> >> references="_5TCZsiTPEdy_OefkKt3p9g">
> >> <contents xmi:type="notation:Diagram"
> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
> >> type="Freeform" name="Main">
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
> >> </contents>
> >> </eAnnotations>
> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
> >> <importedPackage xmi:type="uml:Model"
> >> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
> >> </packageImport>
> >> <packagedElement xmi:type="uml:Activity"
> >> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
> >> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
> > source="uml2.diagrams">
> >> <contents xmi:type="notation:Diagram"
> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
> >> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> >> measurementUnit="Himetric">
> >> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity
> >> Frame"
> >> element="_5TCZtSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
> >> type="ActivityCompartment">
> >> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
> >> element="_5TCZ5iTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
> > type="NameLabel">
> >> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g"
> >> type="Name"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
> >> showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
> >> </children>
> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
> >> element="_5TCZ5yTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
> >> </children>
> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
> >> element="_5TCZ6CTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> >> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
> >> </children>
> >> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
> >> <styles xmi:type="umlnotation:UMLFrameStyle"
> >> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
> >> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
> >> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
> >> target="_5TCZwyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
> >> 70, -40, -7]"/>
> >> </edges>
> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
> >> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
> >> target="_5TCZyyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411,
121,
> > 41,
> >> 6]"/>
> >> </edges>
> >> </contents>
> >> </eAnnotations>
> >> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
> >> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
> >> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
> >> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
> >> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
> >> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
> >> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> </packagedElement>
> >> <packagedElement xmi:type="uml:Activity"
> >> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
> >> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
> > source="uml2.diagrams">
> >> <contents xmi:type="notation:Diagram"
> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
> >> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> >> measurementUnit="Himetric">
> >> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity
> >> Frame"
> >> element="_5TCZ7yTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
> >> type="ActivityCompartment">
> >> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
> >> element="_5TCaMCTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
> > type="NameLabel">
> >> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g"
> >> type="Name"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
> >> showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
> >> </children>
> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
> >> element="_5TCaMSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
> >> </children>
> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
> >> element="_5TCaMiTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
> >> </children>
> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
> >> element="_5TCaMyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> >> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
> >> </children>
> >> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
> >> <styles xmi:type="umlnotation:UMLFrameStyle"
> >> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
> >> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
> >> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
> >> target="_5TCZ_STPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116,
2,
> >> 20]"/>
> >> </edges>
> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
> >> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
> >> target="_5TCaBSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,
> >> 38, -60,
> >> 1]"/>
> >> <sourceAnchor xmi:type="notation:IdentityAnchor"
> >> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
> >> </edges>
> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
> >> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
> >> target="_5TCaDSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
> >> 107, -1, -20]"/>
> >> </edges>
> >> </contents>
> >> </eAnnotations>
> >> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
> >> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
> >> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
> >> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
> >> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
> >> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
> >> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
> >> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
> >> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
> >> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> </packagedElement>
> >> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
> >> </eAnnotations>
> >> <appliedProfile
> >> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
> >
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
> >
href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
> >> </eAnnotations>
> >> <appliedProfile
> >> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
> >> </profileApplication>
> >> </uml:Model>
> >> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
> >> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
> >> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
> >> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
> >> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
> >> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
> >> </xmi:XMI>
> >>
> >>
> >>
> >>
> >
> >
>
>
Re: how to load uml model with stereotype info back ? [message #473450 is a reply to message #473447] Thu, 28 June 2007 17:47 Go to previous messageGo to next message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Ok, I think i should make my problem clear.

1. I draw a uml activity diagram with RSA and applied my own stereotype.
2. now, I need to modify(create a new activity diagarm by adding some nodes
and edges into the orignal one ) according to the stereotype
information(attribut and its value) using UML2 API, so I need a copy of the
origianl acitivity diagram(the original one I cannot modify it directly) but
with the stereotype too.
3. finally, I output the activity diagraml that I created in .uml file

The problem is in step 2. I can get a copy of the orignal model, put it in
the Resource. how can i get the model back(with stereotype) from the
resouce?

Resource old = model.eResource();
Resource newResource =
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension().appendSegment( "copy").appendFileExtension("uml"));
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()));I use: EcoreUtil.getObjectByType(newResource.getContents(),UMLPakag e.literal.Package), but I just get the model without any stereotypeinformation.Is there any solution to step 2?Thanks,Eric"James Bruck" <jbruck@ca.ibm.com> wrote in messagenews:f60ch9$ovo$2@build.eclipse.org...> Hi Eric,>> So the model you attached to the original thread is just an .emx modelthat> you renamed with .uml extension?> If that is the case you won't be able to use opensource API to reopen it,> you need to use RSA api.>> - James.>>>> "Eric" <gonghongyan@hotmail.com> wrote in message> news:f5ug4m$mb8$1@build.eclipse.org...>> Thanks for your quick reply James! I use the code like :>>>> protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI> uri)>> {>>>> Resource resource = RESOURCE_SET.createResource(uri);>>>> EList contents = resource.getContents();>>>> contents.add(package_);>>>> Iterator all = UMLUtil.getAllContents(package_,true,false);>>>> while (all.hasNext()){>>>> EObject eObject = (EObject) all.next();>>>> if (eObject instanceof Element) {>>>> contents>>>> .addAll(((Element) eObject).getStereotypeApplications());>>>> }>>>> }>>>>>>>> try {>>>> resource.save(null);>>>>>> } catch (IOException ioe) {>>>> System.out.println(ioe.getMessage());>>>> }>>>> }>>>> to get the model and save it. it is a .uml model not the emx one.>>>> since I need the stereotype information to modify the one I loaded(I need> to>> create a new model based on the stereotype ), so the tagged value of the>> stereotype>> are very import to me.>>>> Another alternative solution would be, I do not export the model, I copya>> model which generated from RSA (contains the stereotype information )and>> modify it (since I cannot modify the one RSA generated, otherwise RSAwill>> crash)>> and I already did, but I do not know how to get the model from the> resouce.>> the following is the code do the copy:>>>> Resource old = model.eResource();>>>> Resource newResource =>>> old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension() > .appendSegment("copy").appendFileExtension("uml"));>>>>> newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents() > ));>>>> now how to get the model from the newResource?>>>> Thanks,>>>> Eric>>>>>> "James Bruck" <jbruck@ca.ibm.com> wrote in message>> news:f5ue5o$7ga$2@build.eclipse.org...>> > Hi Eric,>> >>> > Is the model that you attached to your posting the .emx or the resultof>> > export to .uml? It appears to be the .emx since there is still>> > notational>> > information and other info that will not be understood by theopensource>> > component.>> > What exactly do you mean by "but I lost the stereotype info which is> very>> > import to me." ?>> >>> > If you are trying to load the .emx back as you seem to want to do, you>> > will>> > need to use RSA api's and customized resource sets.>> >>> >>> > - James.>> >>> >>> > "Eric" <gonghongyan@hotmail.com> wrote in message>> > news:f5ucp8$t1q$1@build.eclipse.org...>> >> Hi,All>> >>>> >> I generated a uml model with stereotype info and export it to .umlfile>> > and>> >> now I want to load the model back into the memeory from the file, butI>> > lost>> >> the stereotype info which is very import to me.>> >> please forgive me the copy and paste.>> >>>> >> the following file is generated using RSA with stereotype information> at>> > the>> >> end. How do I load it back? I export model using the code like:>> >> protected static void saveAll(org.eclipse.uml2.uml.Package package_,>> >>>> >> URI uri) {>> >>>> >>>> >> Resource resource = RESOURCE_SET.createResource(uri);>> >>>> >> EList contents = resource.getContents();>> >>>> >> contents.add(package_);>> >>>> >> Iterator all = UMLUtil.getAllContents(package_,true,false);>> >>>> >> while (all.hasNext()){>> >>>> >> System.out.println("33333");>> >>>> >> EObject eObject = (EObject) all.next();>> >>>> >> if (eObject instanceof Element) {>> >>>> >> contents>> >>>> >> .addAll(((Element) eObject).getStereotypeApplications());>> >>>> >> }>> >>>> >> }>> >>>> >> try {>> >>>> >> resource.save(null);>> >>>> >>>> >> System.out.println("Done.");>> >>>> >> } catch (IOException ioe) {>> >>>> >> System.out.println(ioe.getMessage());>> >>>> >> }>> >>>> >> but I do not know how to load it back, I struggled this problem for>> >> server>> >> month, but cannot figure it out,please help me>> >>>> >> Thanks,>> >>>> >> Eric>> >>>> >>>> >>>> >> <?xml version="1.0" encoding="UTF-8"?>>> >> <xmi:XMI xmi:version="2.1"> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> >>>> >>xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1>> > 3">> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">> >> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation">> >> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML">> >> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation">> >>>> >>xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13>> >> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">>> >> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">>> >> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"> source="uml2.diagrams">> >> references="_5TCZsiTPEdy_OefkKt3p9g">>> >> <contents xmi:type="notation:Diagram">> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g">> >> type="Freeform" name="Main">>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>>> >> </contents>>> >> </eAnnotations>>> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">>> >> <importedPackage xmi:type="uml:Model">> >> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>>> >> </packageImport>>> >> <packagedElement xmi:type="uml:Activity">> >> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">>> >> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >> <contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity">> >> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >> element="_5TCZtSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g">> >> element="_5TCZ5iTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g">> > type="NameLabel">>> >> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g">> >> type="Name"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568">> >> showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>>> >> </children>>> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g">> >> element="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>>> >> </children>>> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g">> >> element="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle">> >> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>>> >> </children>>> >> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>>> >> <styles xmi:type="umlnotation:UMLFrameStyle">> >> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>>> >> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g">> >> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g">> >> target="_5TCZwyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,>> >> 70, -40, -7]"/>>> >> </edges>>> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g">> >> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g">> >> target="_5TCZyyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411,> 121,>> > 41,>> >> 6]"/>>> >> </edges>>> >> </contents>>> >> </eAnnotations>>> >> <node xmi:type="uml:InitialNode"xmi:id="_5TCZ5iTPEdy_OefkKt3p9g ">> >> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ5yTPEdy_OefkKt3p9g">> >> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g">> >> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ6CTPEdy_OefkKt3p9g">> >> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ6STPEdy_OefkKt3p9g ">> >> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ7CTPEdy_OefkKt3p9g ">> >> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> </packagedElement>>> >> <packagedElement xmi:type="uml:Activity">> >> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">>> >> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >> <contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity">> >> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >> element="_5TCZ7yTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g">> >> element="_5TCaMCTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g">> > type="NameLabel">>> >> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g">> >> type="Name"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568">> >> showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>>> >> </children>>> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g">> >> element="_5TCaMSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>>> >> </children>>> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g">> >> element="_5TCaMiTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>>> >> </children>>> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g">> >> element="_5TCaMyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle">> >> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>>> >> </children>>> >> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>>> >> <styles xmi:type="umlnotation:UMLFrameStyle">> >> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>>> >> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g">> >> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g">> >> target="_5TCZ_STPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116,> 2,>> >> 20]"/>>> >> </edges>>> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g">> >> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g">> >> target="_5TCaBSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,>> >> 38, -60,>> >> 1]"/>>> >> <sourceAnchor xmi:type="notation:IdentityAnchor">> >> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>>> >> </edges>>> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g">> >> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g">> >> target="_5TCaDSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,>> >> 107, -1, -20]"/>>> >> </edges>>> >> </contents>>> >> </eAnnotations>>> >> <node xmi:type="uml:InitialNode"xmi:id="_5TCaMCTPEdy_OefkKt3p9g ">> >> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMSTPEdy_OefkKt3p9g">> >> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g">> >> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMiTPEdy_OefkKt3p9g">> >> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g">> >> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMyTPEdy_OefkKt3p9g">> >> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNCTPEdy_OefkKt3p9g ">> >> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNyTPEdy_OefkKt3p9g ">> >> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaOiTPEdy_OefkKt3p9g ">> >> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> </packagedElement>>> >> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>>> >> </eAnnotations>>> >> <appliedProfile>> >> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>>> >> </eAnnotations>>> >> <appliedProfile>> >>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>>> >> </eAnnotations>>> >> <appliedProfile>> >>>> >>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>>> >> </eAnnotations>>> >> <appliedProfile>> >>>> >>href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>>> >> </eAnnotations>>> >> <appliedProfile>> >> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>>> >> </profileApplication>>> >> </uml:Model>>> >> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g">> >> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g">> >> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g">> >> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>>> >> </xmi:XMI>>> >>>> >>>> >>>> >>>> >>> >>>>>>>
Re: how to load uml model with stereotype info back ? [message #473637 is a reply to message #473450] Fri, 29 June 2007 14:20 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The interpretation of href's and pathmaps are diffierent in RSA than in
straight opensource code which might explain the missing stereotype info.
To add items to an activity diagram programmatically I would recommend using
a combination of RSA API and opensource UML API to create semantic items and
get at stereotype info.
The (not so good) alternative would be to export your .emx model to .uml
thereby stripping all the notational info then use the opensource UML API to
add semantic items, then import back into RSA and regenerate your diagram.
With Activity Diagrams you are lucky since they are canonical and notational
items will get regenerated automatically.

Simply renaming the .emx to .uml and hoping to use straight opensource UML
API will probably not work. The otherway around (renaming a .uml to .emx
and opening in RSA) should work in RSA 7.0.0.x and 7.1 but I wouldn't
recommend it.


- James.


"Eric" <gonghongyan@hotmail.com> wrote in message
news:f60s7n$7b1$1@build.eclipse.org...
> Ok, I think i should make my problem clear.
>
> 1. I draw a uml activity diagram with RSA and applied my own stereotype.
> 2. now, I need to modify(create a new activity diagarm by adding some
nodes
> and edges into the orignal one ) according to the stereotype
> information(attribut and its value) using UML2 API, so I need a copy of
the
> origianl acitivity diagram(the original one I cannot modify it directly)
but
> with the stereotype too.
> 3. finally, I output the activity diagraml that I created in .uml file
>
> The problem is in step 2. I can get a copy of the orignal model, put it in
> the Resource. how can i get the model back(with stereotype) from the
> resouce?
>
> Resource old = model.eResource();
> Resource newResource =
>
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension()
..appendSegment("copy").appendFileExtension("uml"));
>
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()
));I use:
EcoreUtil.getObjectByType(newResource.getContents(),UMLPakag e.literal.Packag
e), but I just get the model without any stereotypeinformation.Is there any
solution to step 2?Thanks,Eric"James Bruck" <jbruck@ca.ibm.com> wrote in
messagenews:f60ch9$ovo$2@build.eclipse.org...> Hi Eric,>> So the model you
attached to the original thread is just an .emx modelthat> you renamed with
..uml extension?> If that is the case you won't be able to use opensource API
to reopen it,> you need to use RSA api.>> - James.>>>> "Eric"
<gonghongyan@hotmail.com> wrote in message>
news:f5ug4m$mb8$1@build.eclipse.org...>> Thanks for your quick reply James!
I use the code like :>>>> protected static void
saveAll(org.eclipse.uml2.uml.Package package_,URI> uri)>> {>>>> Resource
resource = RESOURCE_SET.createResource(uri);>>>> EList contents =
resource.getContents();>>>> contents.add(package_);>>>> Iterator all =
UMLUtil.getAllContents(package_,true,false);>>>> while (all.hasNext()){>>>>
EObject eObject = (EObject) all.next();>>>> if (eObject instanceof Element)
{>>>> contents>>>> .addAll(((Element)
eObject).getStereotypeApplications());>>>> }>>>> }>>>>>>>> try {>>>>
resource.save(null);>>>>>> } catch (IOException ioe) {>>>>
System.out.println(ioe.getMessage());>>>> }>>>> }>>>> to get the model and
save it. it is a .uml model not the emx one.>>>> since I need the
stereotype information to modify the one I loaded(I need> to>> create a new
model based on the stereotype ), so the tagged value of the>> stereotype>>
are very import to me.>>>> Another alternative solution would be, I do not
export the model, I copya>> model which generated from RSA (contains the
stereotype information )and>> modify it (since I cannot modify the one RSA
generated, otherwise RSAwill>> crash)>> and I already did, but I do not know
how to get the model from the> resouce.>> the following is the code do the
copy:>>>> Resource old = model.eResource();>>>> Resource newResource
=>>> old.getResourceSet().createResource(oldResource.getURI().tri mFileExtensi
on()>
..appendSegment("copy").appendFileExtension("uml"));>>>> >newResource.getConte
nts().addAll(EcoreUtil.copyAll(oldResource.getContents()> ));>>>> now how to
get the model from the newResource?>>>> Thanks,>>>> Eric>>>>>> "James Bruck"
<jbruck@ca.ibm.com> wrote in message>>
news:f5ue5o$7ga$2@build.eclipse.org...>> > Hi Eric,>> >>> > Is the model
that you attached to your posting the .emx or the resultof>> > export to
..uml? It appears to be the .emx since there is still>> > notational>> >
information and other info that will not be understood by theopensource>> >
component.>> > What exactly do you mean by "but I lost the stereotype info
which is> very>> > import to me." ?>> >>> > If you are trying to load the
..emx back as you seem to want to do, you>> > will>> > need to use RSA api's
and customized resource sets.>> >>> >>> > - James.>> >>> >>> > "Eric"
<gonghongyan@hotmail.com> wrote in message>> >
news:f5ucp8$t1q$1@build.eclipse.org...>> >> Hi,All>> >>>> >> I generated a
uml model with stereotype info and export it to .umlfile>> > and>> >> now I
want to load the model back into the memeory from the file, butI>> > lost>>
>> the stereotype info which is very import to me.>> >> please forgive me
the copy and paste.>> >>>> >> the following file is generated using RSA with
stereotype information> at>> > the>> >> end. How do I load it back? I export
model using the code like:>> >> protected static void
saveAll(org.eclipse.uml2.uml.Package package_,>> >>>> >> URI uri) {>> >>>>
>>>> >> Resource resource = RESOURCE_SET.createResource(uri);>> >>>> >>
EList contents = resource.getContents();>> >>>> >> contents.add(package_);>>
>>>> >> Iterator all = UMLUtil.getAllContents(package_,true,false);>> >>>>
>> while (all.hasNext()){>> >>>> >> System.out.println("33333");>> >>>> >>
EObject eObject = (EObject) all.next();>> >>>> >> if (eObject instanceof
Element) {>> >>>> >> contents>> >>>> >> .addAll(((Element)
eObject).getStereotypeApplications());>> >>>> >> }>> >>>> >> }>> >>>> >> try
{>> >>>> >> resource.save(null);>> >>>> >>>> >>
System.out.println("Done.");>> >>>> >> } catch (IOException ioe) {>> >>>> >>
System.out.println(ioe.getMessage());>> >>>> >> }>> >>>> >> but I do not
know how to load it back, I struggled this problem for>> >> server>> >>
month, but cannot figure it out,please help me>> >>>> >> Thanks,>> >>>> >>
Eric>> >>>> >>>> >>>> >> <?xml version="1.0" encoding="UTF-8"?>>> >>
<xmi:XMI xmi:version="2.1"> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> >>>>
>>xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ
/1>> > 3">> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">> >>
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation">> >>
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML">> >>
xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation">> >>>>
>>xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/
13>> >>
.../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusI Ik9CvaQ ">>> >>
<uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">>> >>
<eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"> source="uml2.diagrams">> >>
references="_5TCZsiTPEdy_OefkKt3p9g">>> >> <contents
xmi:type="notation:Diagram">> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g">> >>
type="Freeform" name="Main">>> >> <styles
xmi:type="umlnotation:UMLDiagramStyle">> >>
xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>>> >> </contents>>> >>
</eAnnotations>>> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">>>
>> <importedPackage xmi:type="uml:Model">> >>
href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>>> >>
</packageImport>>> >> <packagedElement xmi:type="uml:Activity">> >>
xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">>> >> <eAnnotations
xmi:id="_5TCZtiTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >>
<contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g"
type="Activity">> >> element="_5TCZtSTPEdy_OefkKt3p9g"
name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >>
<children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >>
element="_5TCZtSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZuSTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >>
<children xmi:id="_5TCZuiTPEdy_OefkKt3p9g">> >>
element="_5TCZ5iTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZuyTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZvSTPEdy_OefkKt3p9g">> > type="NameLabel">>> >>
<children xmi:id="_5TCZviTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZvyTPEdy_OefkKt3p9g">> >> type="Name"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g"
fillColor="11579568">> >> showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>>> >>
</children>>> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g">>
>> element="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZxCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZxiTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZxyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>>> >>
</children>>> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g">>
>> element="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZzCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZziTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZzyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeCompartmentStyle">> >>
xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>>> >> </children>>> >>
<children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLFrameStyle">> >>
xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>>> >>
</children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">>
>> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>>> >> <edges
xmi:id="_5TCZ2CTPEdy_OefkKt3p9g">> >> element="_5TCZ6STPEdy_OefkKt3p9g"
source="_5TCZuiTPEdy_OefkKt3p9g">> >> target="_5TCZwyTPEdy_OefkKt3p9g">>> >>
<children xmi:id="_5TCZ2STPEdy_OefkKt3p9g">> >>
type="ActivityEdgeLabelCompartment">>> >> <children
xmi:id="_5TCZ2iTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >>
<children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>>
>> <layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g"
points="[0, 10, -13, -67]$[-27,>> >> 70, -40, -7]"/>>> >>
</edges>>> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g">> >>
element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g">> >>
target="_5TCZyyTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ4CTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCZ4iTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g"
points="[41, 13, -329, -102]$[411,> 121,>> > 41,>> >> 6]"/>>> >>
</edges>>> >> </contents>>> >> </eAnnotations>>> >>
<node xmi:type="uml:InitialNode"xmi:id="_5TCZ5iTPEdy_OefkKt3p9g ">> >>
outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ5yTPEdy_OefkKt3p9g">> >>
name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g">> >>
incoming="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ6CTPEdy_OefkKt3p9g">> >>
name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <edge
xmi:type="uml:ControlFlow"xmi:id="_5TCZ6STPEdy_OefkKt3p9g ">> >>
source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ7CTPEdy_OefkKt3p9g ">> >>
source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCZ7STPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
</packagedElement>>> >> <packagedElement xmi:type="uml:Activity">> >>
xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">>> >> <eAnnotations
xmi:id="_5TCZ8CTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >>
<contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g"
type="Activity">> >> element="_5TCZ7yTPEdy_OefkKt3p9g"
name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >>
<children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >>
element="_5TCZ7yTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ8yTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >>
<children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g">> >>
element="_5TCaMCTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ9STPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZ9yTPEdy_OefkKt3p9g">> > type="NameLabel">>> >>
<children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZ-STPEdy_OefkKt3p9g">> >> type="Name"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g"
fillColor="11579568">> >> showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>>> >>
</children>>> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g">>
>> element="_5TCaMSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ_iTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaACTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaASTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>>> >>
</children>>> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g">>
>> element="_5TCaMiTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaBiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaCCTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaCSTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>>> >>
</children>>> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g">>
>> element="_5TCaMyTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaDiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaECTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaESTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeCompartmentStyle">> >>
xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>>> >> </children>>> >>
<children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLFrameStyle">> >>
xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>>> >>
</children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">>
>> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>>> >> <edges
xmi:id="_5TCaGiTPEdy_OefkKt3p9g">> >> element="_5TCaNCTPEdy_OefkKt3p9g"
source="_5TCZ9CTPEdy_OefkKt3p9g">> >> target="_5TCZ_STPEdy_OefkKt3p9g">>> >>
<children xmi:id="_5TCaGyTPEdy_OefkKt3p9g">> >>
type="ActivityEdgeLabelCompartment">>> >> <children
xmi:id="_5TCaHCTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >>
<children xmi:id="_5TCaHSTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>>
>> <layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g"
points="[-2, 10, 29, -86]$[-29, 116,> 2,>> >> 20]"/>>> >>
</edges>>> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g">> >>
element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g">> >>
target="_5TCaBSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaIiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCaJCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g"
points="[30, 4, -253, -33]$[223,>> >> 38, -60,>> >> 1]"/>>> >>
<sourceAnchor xmi:type="notation:IdentityAnchor">> >>
xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>>> >>
</edges>>> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g">> >>
element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g">> >>
target="_5TCaDSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaKiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCaLCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g"
points="[24, 20, -115, -107]$[138,>> >> 107, -1, -20]"/>>> >>
</edges>>> >> </contents>>> >> </eAnnotations>>> >>
<node xmi:type="uml:InitialNode"xmi:id="_5TCaMCTPEdy_OefkKt3p9g ">> >>
outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMSTPEdy_OefkKt3p9g">> >>
name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g">> >>
incoming="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMiTPEdy_OefkKt3p9g">> >>
name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g">> >>
incoming="_5TCaNyTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMyTPEdy_OefkKt3p9g">> >>
name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>>> >> <edge
xmi:type="uml:ControlFlow"xmi:id="_5TCaNCTPEdy_OefkKt3p9g ">> >>
source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaNSTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNyTPEdy_OefkKt3p9g ">> >>
source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaOCTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCaOiTPEdy_OefkKt3p9g ">> >>
source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaOyTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
</packagedElement>>> >> <profileApplication
xmi:id="_5TCaPSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaPiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"
/>>> >> </eAnnotations>>> >> <appliedProfile>> >>
href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>>> >>
</profileApplication>>> >> <profileApplication
xmi:id="_5TCaPyTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaQCTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>>>
>> </eAnnotations>>> >> <appliedProfile>> >>>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>>>
>> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaQSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaQiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/
>>> >> </eAnnotations>>> >> <appliedProfile>> >>>>
>>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/
>>> >> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaQyTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaRCTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/
>>> >> </eAnnotations>>> >> <appliedProfile>> >>>>
>>href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/
>>> >> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaRSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaRiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>
href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>>> >>
</eAnnotations>>> >> <appliedProfile>> >>
href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>>> >>
</profileApplication>>> >> </uml:Model>>> >> <AspectProfile:Advice
xmi:id="_5TCaRyTPEdy_OefkKt3p9g">> >>
base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:Advice
xmi:id="_5TMKsSTPEdy_OefkKt3p9g">> >>
base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:NodePointCut
xmi:id="_5TMKsiTPEdy_OefkKt3p9g">> >>
base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>>> >> </xmi:XMI>>>
>>>> >>>> >>>> >>>> >>> >>>>>>>
>
Re: how to load uml model with stereotype info back ? [message #622599 is a reply to message #473437] Wed, 27 June 2007 19:35 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Eric,

Is the model that you attached to your posting the .emx or the result of
export to .uml? It appears to be the .emx since there is still notational
information and other info that will not be understood by the opensource
component.
What exactly do you mean by "but I lost the stereotype info which is very
import to me." ?

If you are trying to load the .emx back as you seem to want to do, you will
need to use RSA api's and customized resource sets.


- James.


"Eric" <gonghongyan@hotmail.com> wrote in message
news:f5ucp8$t1q$1@build.eclipse.org...
> Hi,All
>
> I generated a uml model with stereotype info and export it to .uml file
and
> now I want to load the model back into the memeory from the file, but I
lost
> the stereotype info which is very import to me.
> please forgive me the copy and paste.
>
> the following file is generated using RSA with stereotype information at
the
> end. How do I load it back? I export model using the code like:
> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
>
> URI uri) {
>
>
> Resource resource = RESOURCE_SET.createResource(uri);
>
> EList contents = resource.getContents();
>
> contents.add(package_);
>
> Iterator all = UMLUtil.getAllContents(package_,true,false);
>
> while (all.hasNext()){
>
> System.out.println("33333");
>
> EObject eObject = (EObject) all.next();
>
> if (eObject instanceof Element) {
>
> contents
>
> .addAll(((Element) eObject).getStereotypeApplications());
>
> }
>
> }
>
> try {
>
> resource.save(null);
>
>
> System.out.println("Done.");
>
> } catch (IOException ioe) {
>
> System.out.println(ioe.getMessage());
>
> }
>
> but I do not know how to load it back, I struggled this problem for server
> month, but cannot figure it out,please help me
>
> Thanks,
>
> Eric
>
>
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>
xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
3"
> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
>
xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g" source="uml2.diagrams"
> references="_5TCZsiTPEdy_OefkKt3p9g">
> <contents xmi:type="notation:Diagram"
xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
> type="Freeform" name="Main">
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
> </contents>
> </eAnnotations>
> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
> <importedPackage xmi:type="uml:Model"
> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
> </packageImport>
> <packagedElement xmi:type="uml:Activity"
> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
source="uml2.diagrams">
> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> measurementUnit="Himetric">
> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity Frame"
> element="_5TCZtSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
> type="ActivityCompartment">
> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
> element="_5TCZ5iTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
type="NameLabel">
> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g" type="Name"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
> showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
> </children>
> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
> element="_5TCZ5yTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
> </children>
> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
> element="_5TCZ6CTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
> </children>
> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLFrameStyle"
> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
> </children>
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
> target="_5TCZwyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
> 70, -40, -7]"/>
> </edges>
> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
> target="_5TCZyyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411, 121,
41,
> 6]"/>
> </edges>
> </contents>
> </eAnnotations>
> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> </packagedElement>
> <packagedElement xmi:type="uml:Activity"
> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
source="uml2.diagrams">
> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> measurementUnit="Himetric">
> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity Frame"
> element="_5TCZ7yTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
> type="ActivityCompartment">
> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
> element="_5TCaMCTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
type="NameLabel">
> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g" type="Name"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
> showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
> </children>
> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
> element="_5TCaMSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
> </children>
> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
> element="_5TCaMiTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
> </children>
> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
> element="_5TCaMyTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
> type="ImageCompartment">
> <layoutConstraint xmi:type="notation:Size"
> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> </children>
> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
> type="Stereotype"/>
> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
> type="InPartitions"/>
> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLShapeStyle"
> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
> </children>
> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
> </children>
> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
> <styles xmi:type="umlnotation:UMLFrameStyle"
> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
> </children>
> <styles xmi:type="umlnotation:UMLDiagramStyle"
> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
> target="_5TCZ_STPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116, 2,
> 20]"/>
> </edges>
> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
> target="_5TCaBSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223, 38, -60,
> 1]"/>
> <sourceAnchor xmi:type="notation:IdentityAnchor"
> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
> </edges>
> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
> target="_5TCaDSTPEdy_OefkKt3p9g">
> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabelCompartment">
> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
type="Stereotype"/>
> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
> type="ActivityEdgeLabel"/>
> <layoutConstraint xmi:type="notation:Bounds"
> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
> </children>
> <styles xmi:type="umlnotation:UMLConnectorStyle"
> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
> showStereotype="Text"/>
> <bendpoints xmi:type="notation:RelativeBendpoints"
> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
> 107, -1, -20]"/>
> </edges>
> </contents>
> </eAnnotations>
> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
> <guard xmi:type="uml:OpaqueExpression"
> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
> <body></body>
> </guard>
> <weight xmi:type="uml:LiteralInteger"
> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
> </edge>
> </packagedElement>
> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
> </eAnnotations>
> <appliedProfile
> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
> </eAnnotations>
> <appliedProfile
> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
> </eAnnotations>
> <appliedProfile
>
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
>
href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
> </eAnnotations>
> <appliedProfile
>
href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
> </profileApplication>
> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
> source="http://www.eclipse.org/uml2/2.0.0/UML">
> <references xmi:type="ecore:EPackage"
> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
> </eAnnotations>
> <appliedProfile
> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
> </profileApplication>
> </uml:Model>
> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
> </xmi:XMI>
>
>
>
>
Re: how to load uml model with stereotype info back ? [message #622654 is a reply to message #473438] Wed, 27 June 2007 20:08 Go to previous message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Thanks for your quick reply James! I use the code like :

protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI uri)
{

Resource resource = RESOURCE_SET.createResource(uri);

EList contents = resource.getContents();

contents.add(package_);

Iterator all = UMLUtil.getAllContents(package_,true,false);

while (all.hasNext()){

EObject eObject = (EObject) all.next();

if (eObject instanceof Element) {

contents

..addAll(((Element) eObject).getStereotypeApplications());

}

}



try {

resource.save(null);


} catch (IOException ioe) {

System.out.println(ioe.getMessage());

}

}

to get the model and save it. it is a .uml model not the emx one.

since I need the stereotype information to modify the one I loaded(I need to
create a new model based on the stereotype ), so the tagged value of the
stereotype
are very import to me.

Another alternative solution would be, I do not export the model, I copy a
model which generated from RSA (contains the stereotype information )and
modify it (since I cannot modify the one RSA generated, otherwise RSA will
crash)
and I already did, but I do not know how to get the model from the resouce.
the following is the code do the copy:

Resource old = model.eResource();

Resource newResource =
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension().appendSegment( "copy").appendFileExtension("uml"));

newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()));

now how to get the model from the newResource?

Thanks,

Eric


"James Bruck" <jbruck@ca.ibm.com> wrote in message
news:f5ue5o$7ga$2@build.eclipse.org...
> Hi Eric,
>
> Is the model that you attached to your posting the .emx or the result of
> export to .uml? It appears to be the .emx since there is still
> notational
> information and other info that will not be understood by the opensource
> component.
> What exactly do you mean by "but I lost the stereotype info which is very
> import to me." ?
>
> If you are trying to load the .emx back as you seem to want to do, you
> will
> need to use RSA api's and customized resource sets.
>
>
> - James.
>
>
> "Eric" <gonghongyan@hotmail.com> wrote in message
> news:f5ucp8$t1q$1@build.eclipse.org...
>> Hi,All
>>
>> I generated a uml model with stereotype info and export it to .uml file
> and
>> now I want to load the model back into the memeory from the file, but I
> lost
>> the stereotype info which is very import to me.
>> please forgive me the copy and paste.
>>
>> the following file is generated using RSA with stereotype information at
> the
>> end. How do I load it back? I export model using the code like:
>> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
>>
>> URI uri) {
>>
>>
>> Resource resource = RESOURCE_SET.createResource(uri);
>>
>> EList contents = resource.getContents();
>>
>> contents.add(package_);
>>
>> Iterator all = UMLUtil.getAllContents(package_,true,false);
>>
>> while (all.hasNext()){
>>
>> System.out.println("33333");
>>
>> EObject eObject = (EObject) all.next();
>>
>> if (eObject instanceof Element) {
>>
>> contents
>>
>> .addAll(((Element) eObject).getStereotypeApplications());
>>
>> }
>>
>> }
>>
>> try {
>>
>> resource.save(null);
>>
>>
>> System.out.println("Done.");
>>
>> } catch (IOException ioe) {
>>
>> System.out.println(ioe.getMessage());
>>
>> }
>>
>> but I do not know how to load it back, I struggled this problem for
>> server
>> month, but cannot figure it out,please help me
>>
>> Thanks,
>>
>> Eric
>>
>>
>>
>> <?xml version="1.0" encoding="UTF-8"?>
>> <xmi:XMI xmi:version="2.1" xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
>>
> xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
> 3"
>> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
>> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
>> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
>> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
>>
> xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
>> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
>> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
>> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g" source="uml2.diagrams"
>> references="_5TCZsiTPEdy_OefkKt3p9g">
>> <contents xmi:type="notation:Diagram"
> xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
>> type="Freeform" name="Main">
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
>> </contents>
>> </eAnnotations>
>> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
>> <importedPackage xmi:type="uml:Model"
>> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
>> </packageImport>
>> <packagedElement xmi:type="uml:Activity"
>> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
>> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
> source="uml2.diagrams">
>> <contents xmi:type="notation:Diagram"
>> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
>> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
>> measurementUnit="Himetric">
>> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity
>> Frame"
>> element="_5TCZtSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
>> type="ActivityCompartment">
>> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
>> element="_5TCZ5iTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
> type="NameLabel">
>> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g"
>> type="Name"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
>> showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
>> </children>
>> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
>> element="_5TCZ5yTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
>> </children>
>> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
>> element="_5TCZ6CTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
>> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
>> </children>
>> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLFrameStyle"
>> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
>> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
>> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
>> target="_5TCZwyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
>> 70, -40, -7]"/>
>> </edges>
>> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
>> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
>> target="_5TCZyyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411, 121,
> 41,
>> 6]"/>
>> </edges>
>> </contents>
>> </eAnnotations>
>> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
>> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
>> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
>> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
>> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
>> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
>> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> </packagedElement>
>> <packagedElement xmi:type="uml:Activity"
>> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
>> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
> source="uml2.diagrams">
>> <contents xmi:type="notation:Diagram"
>> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
>> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
>> measurementUnit="Himetric">
>> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity
>> Frame"
>> element="_5TCZ7yTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
>> type="ActivityCompartment">
>> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
>> element="_5TCaMCTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
> type="NameLabel">
>> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g"
>> type="Name"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
>> showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
>> </children>
>> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
>> element="_5TCaMSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
>> </children>
>> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
>> element="_5TCaMiTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
>> </children>
>> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
>> element="_5TCaMyTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
>> type="ImageCompartment">
>> <layoutConstraint xmi:type="notation:Size"
>> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
>> </children>
>> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
>> type="Stereotype"/>
>> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
>> type="InPartitions"/>
>> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLShapeStyle"
>> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
>> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
>> </children>
>> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
>> <styles xmi:type="umlnotation:UMLFrameStyle"
>> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLDiagramStyle"
>> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
>> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
>> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
>> target="_5TCZ_STPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116, 2,
>> 20]"/>
>> </edges>
>> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
>> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
>> target="_5TCaBSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,
>> 38, -60,
>> 1]"/>
>> <sourceAnchor xmi:type="notation:IdentityAnchor"
>> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
>> </edges>
>> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
>> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
>> target="_5TCaDSTPEdy_OefkKt3p9g">
>> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabelCompartment">
>> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
> type="Stereotype"/>
>> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
>> type="ActivityEdgeLabel"/>
>> <layoutConstraint xmi:type="notation:Bounds"
>> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
>> </children>
>> <styles xmi:type="umlnotation:UMLConnectorStyle"
>> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
>> showStereotype="Text"/>
>> <bendpoints xmi:type="notation:RelativeBendpoints"
>> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
>> 107, -1, -20]"/>
>> </edges>
>> </contents>
>> </eAnnotations>
>> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
>> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
>> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
>> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
>> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
>> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
>> <node xmi:type="uml:OpaqueAction" xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
>> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
>> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
>> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
>> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
>> <guard xmi:type="uml:OpaqueExpression"
>> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
>> <body></body>
>> </guard>
>> <weight xmi:type="uml:LiteralInteger"
>> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
>> </edge>
>> </packagedElement>
>> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
>> </eAnnotations>
>> <appliedProfile
>> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
>> </eAnnotations>
>> <appliedProfile
>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
>> </eAnnotations>
>> <appliedProfile
>>
> href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>>
> href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
>> </eAnnotations>
>> <appliedProfile
>>
> href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
>> </profileApplication>
>> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
>> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
>> source="http://www.eclipse.org/uml2/2.0.0/UML">
>> <references xmi:type="ecore:EPackage"
>> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
>> </eAnnotations>
>> <appliedProfile
>> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
>> </profileApplication>
>> </uml:Model>
>> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
>> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
>> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
>> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
>> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
>> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
>> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
>> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
>> </xmi:XMI>
>>
>>
>>
>>
>
>
Re: how to load uml model with stereotype info back ? [message #622660 is a reply to message #473441] Thu, 28 June 2007 13:19 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Eric,

So the model you attached to the original thread is just an .emx model that
you renamed with .uml extension?
If that is the case you won't be able to use opensource API to reopen it,
you need to use RSA api.

- James.



"Eric" <gonghongyan@hotmail.com> wrote in message
news:f5ug4m$mb8$1@build.eclipse.org...
> Thanks for your quick reply James! I use the code like :
>
> protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI
uri)
> {
>
> Resource resource = RESOURCE_SET.createResource(uri);
>
> EList contents = resource.getContents();
>
> contents.add(package_);
>
> Iterator all = UMLUtil.getAllContents(package_,true,false);
>
> while (all.hasNext()){
>
> EObject eObject = (EObject) all.next();
>
> if (eObject instanceof Element) {
>
> contents
>
> .addAll(((Element) eObject).getStereotypeApplications());
>
> }
>
> }
>
>
>
> try {
>
> resource.save(null);
>
>
> } catch (IOException ioe) {
>
> System.out.println(ioe.getMessage());
>
> }
>
> }
>
> to get the model and save it. it is a .uml model not the emx one.
>
> since I need the stereotype information to modify the one I loaded(I need
to
> create a new model based on the stereotype ), so the tagged value of the
> stereotype
> are very import to me.
>
> Another alternative solution would be, I do not export the model, I copy a
> model which generated from RSA (contains the stereotype information )and
> modify it (since I cannot modify the one RSA generated, otherwise RSA will
> crash)
> and I already did, but I do not know how to get the model from the
resouce.
> the following is the code do the copy:
>
> Resource old = model.eResource();
>
> Resource newResource =
>
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension()
..appendSegment("copy").appendFileExtension("uml"));
>
>
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()
));
>
> now how to get the model from the newResource?
>
> Thanks,
>
> Eric
>
>
> "James Bruck" <jbruck@ca.ibm.com> wrote in message
> news:f5ue5o$7ga$2@build.eclipse.org...
> > Hi Eric,
> >
> > Is the model that you attached to your posting the .emx or the result of
> > export to .uml? It appears to be the .emx since there is still
> > notational
> > information and other info that will not be understood by the opensource
> > component.
> > What exactly do you mean by "but I lost the stereotype info which is
very
> > import to me." ?
> >
> > If you are trying to load the .emx back as you seem to want to do, you
> > will
> > need to use RSA api's and customized resource sets.
> >
> >
> > - James.
> >
> >
> > "Eric" <gonghongyan@hotmail.com> wrote in message
> > news:f5ucp8$t1q$1@build.eclipse.org...
> >> Hi,All
> >>
> >> I generated a uml model with stereotype info and export it to .uml file
> > and
> >> now I want to load the model back into the memeory from the file, but I
> > lost
> >> the stereotype info which is very import to me.
> >> please forgive me the copy and paste.
> >>
> >> the following file is generated using RSA with stereotype information
at
> > the
> >> end. How do I load it back? I export model using the code like:
> >> protected static void saveAll(org.eclipse.uml2.uml.Package package_,
> >>
> >> URI uri) {
> >>
> >>
> >> Resource resource = RESOURCE_SET.createResource(uri);
> >>
> >> EList contents = resource.getContents();
> >>
> >> contents.add(package_);
> >>
> >> Iterator all = UMLUtil.getAllContents(package_,true,false);
> >>
> >> while (all.hasNext()){
> >>
> >> System.out.println("33333");
> >>
> >> EObject eObject = (EObject) all.next();
> >>
> >> if (eObject instanceof Element) {
> >>
> >> contents
> >>
> >> .addAll(((Element) eObject).getStereotypeApplications());
> >>
> >> }
> >>
> >> }
> >>
> >> try {
> >>
> >> resource.save(null);
> >>
> >>
> >> System.out.println("Done.");
> >>
> >> } catch (IOException ioe) {
> >>
> >> System.out.println(ioe.getMessage());
> >>
> >> }
> >>
> >> but I do not know how to load it back, I struggled this problem for
> >> server
> >> month, but cannot figure it out,please help me
> >>
> >> Thanks,
> >>
> >> Eric
> >>
> >>
> >>
> >> <?xml version="1.0" encoding="UTF-8"?>
> >> <xmi:XMI xmi:version="2.1"
xmlns:xmi="http://schema.omg.org/spec/XMI/2.1"
> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> >>
> >
xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1
> > 3"
> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore"
> >> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation"
> >> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML"
> >> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation"
> >>
> >
xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13
> >> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">
> >> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">
> >> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"
source="uml2.diagrams"
> >> references="_5TCZsiTPEdy_OefkKt3p9g">
> >> <contents xmi:type="notation:Diagram"
> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g"
> >> type="Freeform" name="Main">
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>
> >> </contents>
> >> </eAnnotations>
> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">
> >> <importedPackage xmi:type="uml:Model"
> >> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>
> >> </packageImport>
> >> <packagedElement xmi:type="uml:Activity"
> >> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">
> >> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g"
> > source="uml2.diagrams">
> >> <contents xmi:type="notation:Diagram"
> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity"
> >> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> >> measurementUnit="Himetric">
> >> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity
> >> Frame"
> >> element="_5TCZtSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g"
> >> type="ActivityCompartment">
> >> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g"
> >> element="_5TCZ5iTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g"
> > type="NameLabel">
> >> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g"
> >> type="Name"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568"
> >> showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>
> >> </children>
> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g"
> >> element="_5TCZ5yTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>
> >> </children>
> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g"
> >> element="_5TCZ6CTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> >> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>
> >> </children>
> >> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>
> >> <styles xmi:type="umlnotation:UMLFrameStyle"
> >> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>
> >> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g"
> >> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g"
> >> target="_5TCZwyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,
> >> 70, -40, -7]"/>
> >> </edges>
> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g"
> >> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g"
> >> target="_5TCZyyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411,
121,
> > 41,
> >> 6]"/>
> >> </edges>
> >> </contents>
> >> </eAnnotations>
> >> <node xmi:type="uml:InitialNode" xmi:id="_5TCZ5iTPEdy_OefkKt3p9g"
> >> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCZ5yTPEdy_OefkKt3p9g"
> >> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g"
> >> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCZ6CTPEdy_OefkKt3p9g"
> >> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ6STPEdy_OefkKt3p9g"
> >> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCZ7CTPEdy_OefkKt3p9g"
> >> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> </packagedElement>
> >> <packagedElement xmi:type="uml:Activity"
> >> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">
> >> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g"
> > source="uml2.diagrams">
> >> <contents xmi:type="notation:Diagram"
> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity"
> >> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1"
> >> measurementUnit="Himetric">
> >> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity
> >> Frame"
> >> element="_5TCZ7yTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g"
> >> type="ActivityCompartment">
> >> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g"
> >> element="_5TCaMCTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g"
> > type="NameLabel">
> >> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g"
> >> type="Name"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568"
> >> showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>
> >> </children>
> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g"
> >> element="_5TCaMSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>
> >> </children>
> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g"
> >> element="_5TCaMiTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>
> >> </children>
> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g"
> >> element="_5TCaMyTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g"
> >> type="ImageCompartment">
> >> <layoutConstraint xmi:type="notation:Size"
> >> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>
> >> </children>
> >> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g"
> >> type="Stereotype"/>
> >> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g"
> >> type="InPartitions"/>
> >> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"
type="Name"/>
> >> <styles xmi:type="umlnotation:UMLShapeStyle"
> >> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle"
> >> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>
> >> </children>
> >> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>
> >> <styles xmi:type="umlnotation:UMLFrameStyle"
> >> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLDiagramStyle"
> >> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>
> >> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g"
> >> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g"
> >> target="_5TCZ_STPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116,
2,
> >> 20]"/>
> >> </edges>
> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g"
> >> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g"
> >> target="_5TCaBSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,
> >> 38, -60,
> >> 1]"/>
> >> <sourceAnchor xmi:type="notation:IdentityAnchor"
> >> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>
> >> </edges>
> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g"
> >> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g"
> >> target="_5TCaDSTPEdy_OefkKt3p9g">
> >> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabelCompartment">
> >> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g"
> > type="Stereotype"/>
> >> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g"
> >> type="ActivityEdgeLabel"/>
> >> <layoutConstraint xmi:type="notation:Bounds"
> >> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>
> >> </children>
> >> <styles xmi:type="umlnotation:UMLConnectorStyle"
> >> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear"
> >> showStereotype="Text"/>
> >> <bendpoints xmi:type="notation:RelativeBendpoints"
> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,
> >> 107, -1, -20]"/>
> >> </edges>
> >> </contents>
> >> </eAnnotations>
> >> <node xmi:type="uml:InitialNode" xmi:id="_5TCaMCTPEdy_OefkKt3p9g"
> >> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMSTPEdy_OefkKt3p9g"
> >> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g"
> >> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMiTPEdy_OefkKt3p9g"
> >> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g"
> >> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>
> >> <node xmi:type="uml:OpaqueAction"
xmi:id="_5TCaMyTPEdy_OefkKt3p9g"
> >> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNCTPEdy_OefkKt3p9g"
> >> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaNyTPEdy_OefkKt3p9g"
> >> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> <edge xmi:type="uml:ControlFlow" xmi:id="_5TCaOiTPEdy_OefkKt3p9g"
> >> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">
> >> <guard xmi:type="uml:OpaqueExpression"
> >> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">
> >> <body></body>
> >> </guard>
> >> <weight xmi:type="uml:LiteralInteger"
> >> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>
> >> </edge>
> >> </packagedElement>
> >> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>
> >> </eAnnotations>
> >> <appliedProfile
> >> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
> >
href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >>
> >
href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>
> >> </eAnnotations>
> >> <appliedProfile
> >>
> >
href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>
> >> </profileApplication>
> >> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">
> >> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g"
> >> source="http://www.eclipse.org/uml2/2.0.0/UML">
> >> <references xmi:type="ecore:EPackage"
> >> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>
> >> </eAnnotations>
> >> <appliedProfile
> >> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>
> >> </profileApplication>
> >> </uml:Model>
> >> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g"
> >> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>
> >> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g"
> >> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>
> >> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g"
> >> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>
> >> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g"
> >> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>
> >> </xmi:XMI>
> >>
> >>
> >>
> >>
> >
> >
>
>
Re: how to load uml model with stereotype info back ? [message #622663 is a reply to message #473447] Thu, 28 June 2007 17:47 Go to previous message
Eric is currently offline EricFriend
Messages: 77
Registered: July 2009
Member
Ok, I think i should make my problem clear.

1. I draw a uml activity diagram with RSA and applied my own stereotype.
2. now, I need to modify(create a new activity diagarm by adding some nodes
and edges into the orignal one ) according to the stereotype
information(attribut and its value) using UML2 API, so I need a copy of the
origianl acitivity diagram(the original one I cannot modify it directly) but
with the stereotype too.
3. finally, I output the activity diagraml that I created in .uml file

The problem is in step 2. I can get a copy of the orignal model, put it in
the Resource. how can i get the model back(with stereotype) from the
resouce?

Resource old = model.eResource();
Resource newResource =
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension().appendSegment( "copy").appendFileExtension("uml"));
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()));I use: EcoreUtil.getObjectByType(newResource.getContents(),UMLPakag e.literal.Package), but I just get the model without any stereotypeinformation.Is there any solution to step 2?Thanks,Eric"James Bruck" <jbruck@ca.ibm.com> wrote in messagenews:f60ch9$ovo$2@build.eclipse.org...> Hi Eric,>> So the model you attached to the original thread is just an .emx modelthat> you renamed with .uml extension?> If that is the case you won't be able to use opensource API to reopen it,> you need to use RSA api.>> - James.>>>> "Eric" <gonghongyan@hotmail.com> wrote in message> news:f5ug4m$mb8$1@build.eclipse.org...>> Thanks for your quick reply James! I use the code like :>>>> protected static void saveAll(org.eclipse.uml2.uml.Package package_,URI> uri)>> {>>>> Resource resource = RESOURCE_SET.createResource(uri);>>>> EList contents = resource.getContents();>>>> contents.add(package_);>>>> Iterator all = UMLUtil.getAllContents(package_,true,false);>>>> while (all.hasNext()){>>>> EObject eObject = (EObject) all.next();>>>> if (eObject instanceof Element) {>>>> contents>>>> .addAll(((Element) eObject).getStereotypeApplications());>>>> }>>>> }>>>>>>>> try {>>>> resource.save(null);>>>>>> } catch (IOException ioe) {>>>> System.out.println(ioe.getMessage());>>>> }>>>> }>>>> to get the model and save it. it is a .uml model not the emx one.>>>> since I need the stereotype information to modify the one I loaded(I need> to>> create a new model based on the stereotype ), so the tagged value of the>> stereotype>> are very import to me.>>>> Another alternative solution would be, I do not export the model, I copya>> model which generated from RSA (contains the stereotype information )and>> modify it (since I cannot modify the one RSA generated, otherwise RSAwill>> crash)>> and I already did, but I do not know how to get the model from the> resouce.>> the following is the code do the copy:>>>> Resource old = model.eResource();>>>> Resource newResource =>>> old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension() > .appendSegment("copy").appendFileExtension("uml"));>>>>> newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents() > ));>>>> now how to get the model from the newResource?>>>> Thanks,>>>> Eric>>>>>> "James Bruck" <jbruck@ca.ibm.com> wrote in message>> news:f5ue5o$7ga$2@build.eclipse.org...>> > Hi Eric,>> >>> > Is the model that you attached to your posting the .emx or the resultof>> > export to .uml? It appears to be the .emx since there is still>> > notational>> > information and other info that will not be understood by theopensource>> > component.>> > What exactly do you mean by "but I lost the stereotype info which is> very>> > import to me." ?>> >>> > If you are trying to load the .emx back as you seem to want to do, you>> > will>> > need to use RSA api's and customized resource sets.>> >>> >>> > - James.>> >>> >>> > "Eric" <gonghongyan@hotmail.com> wrote in message>> > news:f5ucp8$t1q$1@build.eclipse.org...>> >> Hi,All>> >>>> >> I generated a uml model with stereotype info and export it to .umlfile>> > and>> >> now I want to load the model back into the memeory from the file, butI>> > lost>> >> the stereotype info which is very import to me.>> >> please forgive me the copy and paste.>> >>>> >> the following file is generated using RSA with stereotype information> at>> > the>> >> end. How do I load it back? I export model using the code like:>> >> protected static void saveAll(org.eclipse.uml2.uml.Package package_,>> >>>> >> URI uri) {>> >>>> >>>> >> Resource resource = RESOURCE_SET.createResource(uri);>> >>>> >> EList contents = resource.getContents();>> >>>> >> contents.add(package_);>> >>>> >> Iterator all = UMLUtil.getAllContents(package_,true,false);>> >>>> >> while (all.hasNext()){>> >>>> >> System.out.println("33333");>> >>>> >> EObject eObject = (EObject) all.next();>> >>>> >> if (eObject instanceof Element) {>> >>>> >> contents>> >>>> >> .addAll(((Element) eObject).getStereotypeApplications());>> >>>> >> }>> >>>> >> }>> >>>> >> try {>> >>>> >> resource.save(null);>> >>>> >>>> >> System.out.println("Done.");>> >>>> >> } catch (IOException ioe) {>> >>>> >> System.out.println(ioe.getMessage());>> >>>> >> }>> >>>> >> but I do not know how to load it back, I struggled this problem for>> >> server>> >> month, but cannot figure it out,please help me>> >>>> >> Thanks,>> >>>> >> Eric>> >>>> >>>> >>>> >> <?xml version="1.0" encoding="UTF-8"?>>> >> <xmi:XMI xmi:version="2.1"> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> >>>> >>xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/1>> > 3">> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">> >> xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation">> >> xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML">> >> xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation">> >>>> >>xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/13>> >> ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ ">>> >> <uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">>> >> <eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"> source="uml2.diagrams">> >> references="_5TCZsiTPEdy_OefkKt3p9g">>> >> <contents xmi:type="notation:Diagram">> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g">> >> type="Freeform" name="Main">>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>>> >> </contents>>> >> </eAnnotations>>> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">>> >> <importedPackage xmi:type="uml:Model">> >> href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>>> >> </packageImport>>> >> <packagedElement xmi:type="uml:Activity">> >> xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">>> >> <eAnnotations xmi:id="_5TCZtiTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >> <contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g" type="Activity">> >> element="_5TCZtSTPEdy_OefkKt3p9g" name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >> <children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >> element="_5TCZtSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZuSTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >> <children xmi:id="_5TCZuiTPEdy_OefkKt3p9g">> >> element="_5TCZ5iTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZuyTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZvSTPEdy_OefkKt3p9g">> > type="NameLabel">>> >> <children xmi:id="_5TCZviTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZvyTPEdy_OefkKt3p9g">> >> type="Name"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g" fillColor="11579568">> >> showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>>> >> </children>>> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g">> >> element="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZxCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZxiTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZxyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>>> >> </children>>> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g">> >> element="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZzCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZziTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZzyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle">> >> xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>>> >> </children>>> >> <children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>>> >> <styles xmi:type="umlnotation:UMLFrameStyle">> >> xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>>> >> <edges xmi:id="_5TCZ2CTPEdy_OefkKt3p9g">> >> element="_5TCZ6STPEdy_OefkKt3p9g" source="_5TCZuiTPEdy_OefkKt3p9g">> >> target="_5TCZwyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ2STPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCZ2iTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g" points="[0, 10, -13, -67]$[-27,>> >> 70, -40, -7]"/>>> >> </edges>>> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g">> >> element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g">> >> target="_5TCZyyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ4CTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCZ4iTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g" points="[41, 13, -329, -102]$[411,> 121,>> > 41,>> >> 6]"/>>> >> </edges>>> >> </contents>>> >> </eAnnotations>>> >> <node xmi:type="uml:InitialNode"xmi:id="_5TCZ5iTPEdy_OefkKt3p9g ">> >> outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ5yTPEdy_OefkKt3p9g">> >> name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g">> >> incoming="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ6CTPEdy_OefkKt3p9g">> >> name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ6STPEdy_OefkKt3p9g ">> >> source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ7CTPEdy_OefkKt3p9g ">> >> source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCZ7STPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> </packagedElement>>> >> <packagedElement xmi:type="uml:Activity">> >> xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">>> >> <eAnnotations xmi:id="_5TCZ8CTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >> <contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g" type="Activity">> >> element="_5TCZ7yTPEdy_OefkKt3p9g" name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >> <children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >> element="_5TCZ7yTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ8yTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >> <children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g">> >> element="_5TCaMCTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ9STPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCZ9yTPEdy_OefkKt3p9g">> > type="NameLabel">>> >> <children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCZ-STPEdy_OefkKt3p9g">> >> type="Name"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g" fillColor="11579568">> >> showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>>> >> </children>>> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g">> >> element="_5TCaMSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCZ_iTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaACTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaASTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>>> >> </children>>> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g">> >> element="_5TCaMiTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaBiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaCCTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaCSTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>>> >> </children>>> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g">> >> element="_5TCaMyTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaDiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >> <layoutConstraint xmi:type="notation:Size">> >> xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >> </children>>> >> <children xmi:id="_5TCaECTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >> <children xmi:id="_5TCaESTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >> <children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"> type="Name"/>>> >> <styles xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLShapeCompartmentStyle">> >> xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>>> >> </children>>> >> <children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>>> >> <styles xmi:type="umlnotation:UMLFrameStyle">> >> xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">> >> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>>> >> <edges xmi:id="_5TCaGiTPEdy_OefkKt3p9g">> >> element="_5TCaNCTPEdy_OefkKt3p9g" source="_5TCZ9CTPEdy_OefkKt3p9g">> >> target="_5TCZ_STPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaGyTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaHCTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaHSTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g" points="[-2, 10, 29, -86]$[-29, 116,> 2,>> >> 20]"/>>> >> </edges>>> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g">> >> element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g">> >> target="_5TCaBSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaIiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaJCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g" points="[30, 4, -253, -33]$[223,>> >> 38, -60,>> >> 1]"/>>> >> <sourceAnchor xmi:type="notation:IdentityAnchor">> >> xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>>> >> </edges>>> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g">> >> element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g">> >> target="_5TCaDSTPEdy_OefkKt3p9g">>> >> <children xmi:id="_5TCaKiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>> >> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >> <children xmi:id="_5TCaLCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >> <layoutConstraint xmi:type="notation:Bounds">> >> xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>> >> <styles xmi:type="umlnotation:UMLConnectorStyle">> >> xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear">> >> showStereotype="Text"/>>> >> <bendpoints xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g" points="[24, 20, -115, -107]$[138,>> >> 107, -1, -20]"/>>> >> </edges>>> >> </contents>>> >> </eAnnotations>>> >> <node xmi:type="uml:InitialNode"xmi:id="_5TCaMCTPEdy_OefkKt3p9g ">> >> outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMSTPEdy_OefkKt3p9g">> >> name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g">> >> incoming="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMiTPEdy_OefkKt3p9g">> >> name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g">> >> incoming="_5TCaNyTPEdy_OefkKt3p9g"/>>> >> <node xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMyTPEdy_OefkKt3p9g">> >> name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNCTPEdy_OefkKt3p9g ">> >> source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaNSTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNyTPEdy_OefkKt3p9g ">> >> source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaOCTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> <edge xmi:type="uml:ControlFlow"xmi:id="_5TCaOiTPEdy_OefkKt3p9g ">> >> source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">>> >> <guard xmi:type="uml:OpaqueExpression">> >> xmi:id="_5TCaOyTPEdy_OefkKt3p9g">>> >> <body></body>>> >> </guard>>> >> <weight xmi:type="uml:LiteralInteger">> >> xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >> </packagedElement>>> >> <profileApplication xmi:id="_5TCaPSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaPiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"/>>> >> </eAnnotations>>> >> <appliedProfile>> >> href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaPyTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaQCTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>>> >> </eAnnotations>>> >> <appliedProfile>> >>> href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaQSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaQiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/>>> >> </eAnnotations>>> >> <appliedProfile>> >>>> >>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaQyTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaRCTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >>>> >>href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/>>> >> </eAnnotations>>> >> <appliedProfile>> >>>> >>href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/>>> >> </profileApplication>>> >> <profileApplication xmi:id="_5TCaRSTPEdy_OefkKt3p9g">>> >> <eAnnotations xmi:id="_5TCaRiTPEdy_OefkKt3p9g">> >> source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references xmi:type="ecore:EPackage">> >> href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>>> >> </eAnnotations>>> >> <appliedProfile>> >> href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>>> >> </profileApplication>>> >> </uml:Model>>> >> <AspectProfile:Advice xmi:id="_5TCaRyTPEdy_OefkKt3p9g">> >> base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:Advice xmi:id="_5TMKsSTPEdy_OefkKt3p9g">> >> base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:NodePointCut xmi:id="_5TMKsiTPEdy_OefkKt3p9g">> >> base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>>> >> <AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g">> >> base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>>> >> </xmi:XMI>>> >>>> >>>> >>>> >>>> >>> >>>>>>>
Re: how to load uml model with stereotype info back ? [message #622669 is a reply to message #473450] Fri, 29 June 2007 14:20 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
The interpretation of href's and pathmaps are diffierent in RSA than in
straight opensource code which might explain the missing stereotype info.
To add items to an activity diagram programmatically I would recommend using
a combination of RSA API and opensource UML API to create semantic items and
get at stereotype info.
The (not so good) alternative would be to export your .emx model to .uml
thereby stripping all the notational info then use the opensource UML API to
add semantic items, then import back into RSA and regenerate your diagram.
With Activity Diagrams you are lucky since they are canonical and notational
items will get regenerated automatically.

Simply renaming the .emx to .uml and hoping to use straight opensource UML
API will probably not work. The otherway around (renaming a .uml to .emx
and opening in RSA) should work in RSA 7.0.0.x and 7.1 but I wouldn't
recommend it.


- James.


"Eric" <gonghongyan@hotmail.com> wrote in message
news:f60s7n$7b1$1@build.eclipse.org...
> Ok, I think i should make my problem clear.
>
> 1. I draw a uml activity diagram with RSA and applied my own stereotype.
> 2. now, I need to modify(create a new activity diagarm by adding some
nodes
> and edges into the orignal one ) according to the stereotype
> information(attribut and its value) using UML2 API, so I need a copy of
the
> origianl acitivity diagram(the original one I cannot modify it directly)
but
> with the stereotype too.
> 3. finally, I output the activity diagraml that I created in .uml file
>
> The problem is in step 2. I can get a copy of the orignal model, put it in
> the Resource. how can i get the model back(with stereotype) from the
> resouce?
>
> Resource old = model.eResource();
> Resource newResource =
>
old.getResourceSet().createResource(oldResource.getURI().tri mFileExtension()
..appendSegment("copy").appendFileExtension("uml"));
>
newResource.getContents().addAll(EcoreUtil.copyAll(oldResour ce.getContents()
));I use:
EcoreUtil.getObjectByType(newResource.getContents(),UMLPakag e.literal.Packag
e), but I just get the model without any stereotypeinformation.Is there any
solution to step 2?Thanks,Eric"James Bruck" <jbruck@ca.ibm.com> wrote in
messagenews:f60ch9$ovo$2@build.eclipse.org...> Hi Eric,>> So the model you
attached to the original thread is just an .emx modelthat> you renamed with
..uml extension?> If that is the case you won't be able to use opensource API
to reopen it,> you need to use RSA api.>> - James.>>>> "Eric"
<gonghongyan@hotmail.com> wrote in message>
news:f5ug4m$mb8$1@build.eclipse.org...>> Thanks for your quick reply James!
I use the code like :>>>> protected static void
saveAll(org.eclipse.uml2.uml.Package package_,URI> uri)>> {>>>> Resource
resource = RESOURCE_SET.createResource(uri);>>>> EList contents =
resource.getContents();>>>> contents.add(package_);>>>> Iterator all =
UMLUtil.getAllContents(package_,true,false);>>>> while (all.hasNext()){>>>>
EObject eObject = (EObject) all.next();>>>> if (eObject instanceof Element)
{>>>> contents>>>> .addAll(((Element)
eObject).getStereotypeApplications());>>>> }>>>> }>>>>>>>> try {>>>>
resource.save(null);>>>>>> } catch (IOException ioe) {>>>>
System.out.println(ioe.getMessage());>>>> }>>>> }>>>> to get the model and
save it. it is a .uml model not the emx one.>>>> since I need the
stereotype information to modify the one I loaded(I need> to>> create a new
model based on the stereotype ), so the tagged value of the>> stereotype>>
are very import to me.>>>> Another alternative solution would be, I do not
export the model, I copya>> model which generated from RSA (contains the
stereotype information )and>> modify it (since I cannot modify the one RSA
generated, otherwise RSAwill>> crash)>> and I already did, but I do not know
how to get the model from the> resouce.>> the following is the code do the
copy:>>>> Resource old = model.eResource();>>>> Resource newResource
=>>> old.getResourceSet().createResource(oldResource.getURI().tri mFileExtensi
on()>
..appendSegment("copy").appendFileExtension("uml"));>>>> >newResource.getConte
nts().addAll(EcoreUtil.copyAll(oldResource.getContents()> ));>>>> now how to
get the model from the newResource?>>>> Thanks,>>>> Eric>>>>>> "James Bruck"
<jbruck@ca.ibm.com> wrote in message>>
news:f5ue5o$7ga$2@build.eclipse.org...>> > Hi Eric,>> >>> > Is the model
that you attached to your posting the .emx or the resultof>> > export to
..uml? It appears to be the .emx since there is still>> > notational>> >
information and other info that will not be understood by theopensource>> >
component.>> > What exactly do you mean by "but I lost the stereotype info
which is> very>> > import to me." ?>> >>> > If you are trying to load the
..emx back as you seem to want to do, you>> > will>> > need to use RSA api's
and customized resource sets.>> >>> >>> > - James.>> >>> >>> > "Eric"
<gonghongyan@hotmail.com> wrote in message>> >
news:f5ucp8$t1q$1@build.eclipse.org...>> >> Hi,All>> >>>> >> I generated a
uml model with stereotype info and export it to .umlfile>> > and>> >> now I
want to load the model back into the memeory from the file, butI>> > lost>>
>> the stereotype info which is very import to me.>> >> please forgive me
the copy and paste.>> >>>> >> the following file is generated using RSA with
stereotype information> at>> > the>> >> end. How do I load it back? I export
model using the code like:>> >> protected static void
saveAll(org.eclipse.uml2.uml.Package package_,>> >>>> >> URI uri) {>> >>>>
>>>> >> Resource resource = RESOURCE_SET.createResource(uri);>> >>>> >>
EList contents = resource.getContents();>> >>>> >> contents.add(package_);>>
>>>> >> Iterator all = UMLUtil.getAllContents(package_,true,false);>> >>>>
>> while (all.hasNext()){>> >>>> >> System.out.println("33333");>> >>>> >>
EObject eObject = (EObject) all.next();>> >>>> >> if (eObject instanceof
Element) {>> >>>> >> contents>> >>>> >> .addAll(((Element)
eObject).getStereotypeApplications());>> >>>> >> }>> >>>> >> }>> >>>> >> try
{>> >>>> >> resource.save(null);>> >>>> >>>> >>
System.out.println("Done.");>> >>>> >> } catch (IOException ioe) {>> >>>> >>
System.out.println(ioe.getMessage());>> >>>> >> }>> >>>> >> but I do not
know how to load it back, I struggled this problem for>> >> server>> >>
month, but cannot figure it out,please help me>> >>>> >> Thanks,>> >>>> >>
Eric>> >>>> >>>> >>>> >> <?xml version="1.0" encoding="UTF-8"?>>> >>
<xmi:XMI xmi:version="2.1"> xmlns:xmi="http://schema.omg.org/spec/XMI/2.1">>
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">> >>>>
>>xmlns:AspectProfile="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ
/1>> > 3">> >> xmlns:ecore="http://www.eclipse.org/emf/2002/Ecore">> >>
xmlns:notation="http://www.eclipse.org/gmf/runtime/1.0.0/notation">> >>
xmlns:uml="http://www.eclipse.org/uml2/2.0.0/UML">> >>
xmlns:umlnotation="http://www.ibm.com/xtools/1.5.2/Umlnotation">> >>>>
>>xsi:schemaLocation="http:///schemas/AspectProfile/_AGoP0ASDEdynusIIk9CvaQ/
13>> >>
.../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusI Ik9CvaQ ">>> >>
<uml:Model xmi:id="_5TCZsCTPEdy_OefkKt3p9g" name="version2">>> >>
<eAnnotations xmi:id="_5TCZsSTPEdy_OefkKt3p9g"> source="uml2.diagrams">> >>
references="_5TCZsiTPEdy_OefkKt3p9g">>> >> <contents
xmi:type="notation:Diagram">> > xmi:id="_5TCZsiTPEdy_OefkKt3p9g">> >>
type="Freeform" name="Main">>> >> <styles
xmi:type="umlnotation:UMLDiagramStyle">> >>
xmi:id="_5TCZsyTPEdy_OefkKt3p9g"/>>> >> </contents>>> >>
</eAnnotations>>> >> <packageImport xmi:id="_5TCZtCTPEdy_OefkKt3p9g">>>
>> <importedPackage xmi:type="uml:Model">> >>
href="pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#_0"/>>> >>
</packageImport>>> >> <packagedElement xmi:type="uml:Activity">> >>
xmi:id="_5TCZtSTPEdy_OefkKt3p9g" name="Activity1">>> >> <eAnnotations
xmi:id="_5TCZtiTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >>
<contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZtyTPEdy_OefkKt3p9g"
type="Activity">> >> element="_5TCZtSTPEdy_OefkKt3p9g"
name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >>
<children xmi:id="_5TCZuCTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >>
element="_5TCZtSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZuSTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >>
<children xmi:id="_5TCZuiTPEdy_OefkKt3p9g">> >>
element="_5TCZ5iTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZuyTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZvCTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZvSTPEdy_OefkKt3p9g">> > type="NameLabel">>> >>
<children xmi:id="_5TCZviTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZvyTPEdy_OefkKt3p9g">> >> type="Name"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZwCTPEdy_OefkKt3p9g" y="-186"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZwSTPEdy_OefkKt3p9g"
fillColor="11579568">> >> showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZwiTPEdy_OefkKt3p9g" x="3572" y="1217"/>>> >>
</children>>> >> <children xmi:id="_5TCZwyTPEdy_OefkKt3p9g">>
>> element="_5TCZ5yTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZxCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZxSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZxiTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZxyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCZyCTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCZySTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZyiTPEdy_OefkKt3p9g" x="3123" y="2990"/>>> >>
</children>>> >> <children xmi:id="_5TCZyyTPEdy_OefkKt3p9g">>
>> element="_5TCZ6CTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZzCTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZzSTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZziTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZzyTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCZ0CTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCZ0STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ0iTPEdy_OefkKt3p9g" x="12912" y="6032"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeCompartmentStyle">> >>
xmi:id="_5TCZ0yTPEdy_OefkKt3p9g"/>>> >> </children>>> >>
<children xmi:id="_5TCZ1CTPEdy_OefkKt3p9g" type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLFrameStyle">> >>
xmi:id="_5TCZ1STPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ1iTPEdy_OefkKt3p9g" x="793" y="793"/>>> >>
</children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">>
>> xmi:id="_5TCZ1yTPEdy_OefkKt3p9g"/>>> >> <edges
xmi:id="_5TCZ2CTPEdy_OefkKt3p9g">> >> element="_5TCZ6STPEdy_OefkKt3p9g"
source="_5TCZuiTPEdy_OefkKt3p9g">> >> target="_5TCZwyTPEdy_OefkKt3p9g">>> >>
<children xmi:id="_5TCZ2STPEdy_OefkKt3p9g">> >>
type="ActivityEdgeLabelCompartment">>> >> <children
xmi:id="_5TCZ2iTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >>
<children xmi:id="_5TCZ2yTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>>
>> <layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ3CTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCZ3STPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ3iTPEdy_OefkKt3p9g"
points="[0, 10, -13, -67]$[-27,>> >> 70, -40, -7]"/>>> >>
</edges>>> >> <edges xmi:id="_5TCZ3yTPEdy_OefkKt3p9g">> >>
element="_5TCZ7CTPEdy_OefkKt3p9g" source="_5TCZwyTPEdy_OefkKt3p9g">> >>
target="_5TCZyyTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ4CTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCZ4STPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCZ4iTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ4yTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCZ5CTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCZ5STPEdy_OefkKt3p9g"
points="[41, 13, -329, -102]$[411,> 121,>> > 41,>> >> 6]"/>>> >>
</edges>>> >> </contents>>> >> </eAnnotations>>> >>
<node xmi:type="uml:InitialNode"xmi:id="_5TCZ5iTPEdy_OefkKt3p9g ">> >>
outgoing="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ5yTPEdy_OefkKt3p9g">> >>
name="send" outgoing="_5TCZ7CTPEdy_OefkKt3p9g">> >>
incoming="_5TCZ6STPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCZ6CTPEdy_OefkKt3p9g">> >>
name="reply" incoming="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <edge
xmi:type="uml:ControlFlow"xmi:id="_5TCZ6STPEdy_OefkKt3p9g ">> >>
source="_5TCZ5iTPEdy_OefkKt3p9g" target="_5TCZ5yTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCZ6iTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCZ6yTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCZ7CTPEdy_OefkKt3p9g ">> >>
source="_5TCZ5yTPEdy_OefkKt3p9g" target="_5TCZ6CTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCZ7STPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCZ7iTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
</packagedElement>>> >> <packagedElement xmi:type="uml:Activity">> >>
xmi:id="_5TCZ7yTPEdy_OefkKt3p9g" name="Activity2">>> >> <eAnnotations
xmi:id="_5TCZ8CTPEdy_OefkKt3p9g">> > source="uml2.diagrams">>> >>
<contents xmi:type="notation:Diagram">> >> xmi:id="_5TCZ8STPEdy_OefkKt3p9g"
type="Activity">> >> element="_5TCZ7yTPEdy_OefkKt3p9g"
name="ActivityDiagram1">> >> measurementUnit="Himetric">>> >>
<children xmi:id="_5TCZ8iTPEdy_OefkKt3p9g" type="Activity>> >> Frame">> >>
element="_5TCZ7yTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ8yTPEdy_OefkKt3p9g">> >> type="ActivityCompartment">>> >>
<children xmi:id="_5TCZ9CTPEdy_OefkKt3p9g">> >>
element="_5TCaMCTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ9STPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZ9iTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCZ9yTPEdy_OefkKt3p9g">> > type="NameLabel">>> >>
<children xmi:id="_5TCZ-CTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCZ-STPEdy_OefkKt3p9g">> >> type="Name"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ-iTPEdy_OefkKt3p9g" y="-186"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeStyle">> >> xmi:id="_5TCZ-yTPEdy_OefkKt3p9g"
fillColor="11579568">> >> showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCZ_CTPEdy_OefkKt3p9g" x="2646" y="952"/>>> >>
</children>>> >> <children xmi:id="_5TCZ_STPEdy_OefkKt3p9g">>
>> element="_5TCaMSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCZ_iTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCZ_yTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaACTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaASTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaAiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaAyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaBCTPEdy_OefkKt3p9g" x="1032" y="3228"/>>> >>
</children>>> >> <children xmi:id="_5TCaBSTPEdy_OefkKt3p9g">>
>> element="_5TCaMiTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaBiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCaByTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaCCTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaCSTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaCiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaCyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaDCTPEdy_OefkKt3p9g" x="8282" y="3889"/>>> >>
</children>>> >> <children xmi:id="_5TCaDSTPEdy_OefkKt3p9g">>
>> element="_5TCaMyTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaDiTPEdy_OefkKt3p9g">> >> type="ImageCompartment">>> >>
<layoutConstraint xmi:type="notation:Size">> >>
xmi:id="_5TCaDyTPEdy_OefkKt3p9g" width="1320" height="1320"/>>> >>
</children>>> >> <children
xmi:id="_5TCaECTPEdy_OefkKt3p9g">> >> type="Stereotype"/>>> >>
<children xmi:id="_5TCaESTPEdy_OefkKt3p9g">> >> type="InPartitions"/>>> >>
<children xmi:id="_5TCaEiTPEdy_OefkKt3p9g"> type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLShapeStyle">> >>
xmi:id="_5TCaEyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaFCTPEdy_OefkKt3p9g" x="12489" y="7249"/>>> >>
</children>>> >> <styles
xmi:type="umlnotation:UMLShapeCompartmentStyle">> >>
xmi:id="_5TCaFSTPEdy_OefkKt3p9g"/>>> >> </children>>> >>
<children xmi:id="_5TCaFiTPEdy_OefkKt3p9g" type="Name"/>>> >>
<styles xmi:type="umlnotation:UMLFrameStyle">> >>
xmi:id="_5TCaFyTPEdy_OefkKt3p9g" showStereotype="Label"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaGCTPEdy_OefkKt3p9g" x="793" y="793"/>>> >>
</children>>> >> <styles xmi:type="umlnotation:UMLDiagramStyle">>
>> xmi:id="_5TCaGSTPEdy_OefkKt3p9g"/>>> >> <edges
xmi:id="_5TCaGiTPEdy_OefkKt3p9g">> >> element="_5TCaNCTPEdy_OefkKt3p9g"
source="_5TCZ9CTPEdy_OefkKt3p9g">> >> target="_5TCZ_STPEdy_OefkKt3p9g">>> >>
<children xmi:id="_5TCaGyTPEdy_OefkKt3p9g">> >>
type="ActivityEdgeLabelCompartment">>> >> <children
xmi:id="_5TCaHCTPEdy_OefkKt3p9g">> > type="Stereotype"/>>> >>
<children xmi:id="_5TCaHSTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>>
>> <layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaHiTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaHyTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaICTPEdy_OefkKt3p9g"
points="[-2, 10, 29, -86]$[-29, 116,> 2,>> >> 20]"/>>> >>
</edges>>> >> <edges xmi:id="_5TCaISTPEdy_OefkKt3p9g">> >>
element="_5TCaNyTPEdy_OefkKt3p9g" source="_5TCZ_STPEdy_OefkKt3p9g">> >>
target="_5TCaBSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaIiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCaIyTPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCaJCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaJSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaJiTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaJyTPEdy_OefkKt3p9g"
points="[30, 4, -253, -33]$[223,>> >> 38, -60,>> >> 1]"/>>> >>
<sourceAnchor xmi:type="notation:IdentityAnchor">> >>
xmi:id="_5TCaKCTPEdy_OefkKt3p9g" id="(0.6252363,0.20465568)"/>>> >>
</edges>>> >> <edges xmi:id="_5TCaKSTPEdy_OefkKt3p9g">> >>
element="_5TCaOiTPEdy_OefkKt3p9g" source="_5TCaBSTPEdy_OefkKt3p9g">> >>
target="_5TCaDSTPEdy_OefkKt3p9g">>> >> <children
xmi:id="_5TCaKiTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabelCompartment">>>
>> <children xmi:id="_5TCaKyTPEdy_OefkKt3p9g">> >
type="Stereotype"/>>> >> <children
xmi:id="_5TCaLCTPEdy_OefkKt3p9g">> >> type="ActivityEdgeLabel"/>>> >>
<layoutConstraint xmi:type="notation:Bounds">> >>
xmi:id="_5TCaLSTPEdy_OefkKt3p9g" y="-186"/>>> >> </children>>>
>> <styles xmi:type="umlnotation:UMLConnectorStyle">> >>
xmi:id="_5TCaLiTPEdy_OefkKt3p9g" routing="Rectilinear">> >>
showStereotype="Text"/>>> >> <bendpoints
xmi:type="notation:RelativeBendpoints">> >> xmi:id="_5TCaLyTPEdy_OefkKt3p9g"
points="[24, 20, -115, -107]$[138,>> >> 107, -1, -20]"/>>> >>
</edges>>> >> </contents>>> >> </eAnnotations>>> >>
<node xmi:type="uml:InitialNode"xmi:id="_5TCaMCTPEdy_OefkKt3p9g ">> >>
outgoing="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMSTPEdy_OefkKt3p9g">> >>
name="send" outgoing="_5TCaNyTPEdy_OefkKt3p9g">> >>
incoming="_5TCaNCTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMiTPEdy_OefkKt3p9g">> >>
name="OpaqueAction" outgoing="_5TCaOiTPEdy_OefkKt3p9g">> >>
incoming="_5TCaNyTPEdy_OefkKt3p9g"/>>> >> <node
xmi:type="uml:OpaqueAction"> xmi:id="_5TCaMyTPEdy_OefkKt3p9g">> >>
name="reply" incoming="_5TCaOiTPEdy_OefkKt3p9g"/>>> >> <edge
xmi:type="uml:ControlFlow"xmi:id="_5TCaNCTPEdy_OefkKt3p9g ">> >>
source="_5TCaMCTPEdy_OefkKt3p9g" target="_5TCaMSTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaNSTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaNiTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCaNyTPEdy_OefkKt3p9g ">> >>
source="_5TCaMSTPEdy_OefkKt3p9g" target="_5TCaMiTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaOCTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaOSTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
<edge xmi:type="uml:ControlFlow"xmi:id="_5TCaOiTPEdy_OefkKt3p9g ">> >>
source="_5TCaMiTPEdy_OefkKt3p9g" target="_5TCaMyTPEdy_OefkKt3p9g">>> >>
<guard xmi:type="uml:OpaqueExpression">> >>
xmi:id="_5TCaOyTPEdy_OefkKt3p9g">>> >> <body></body>>> >>
</guard>>> >> <weight xmi:type="uml:LiteralInteger">> >>
xmi:id="_5TCaPCTPEdy_OefkKt3p9g" value="1"/>>> >> </edge>>> >>
</packagedElement>>> >> <profileApplication
xmi:id="_5TCaPSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaPiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" pathmap://UML_PROFILES/Standard.profile.uml#_yzU58YinEdqtvbn fB2L_5w"
/>>> >> </eAnnotations>>> >> <appliedProfile>> >>
href="pathmap://UML_PROFILES/Standard.profile.uml#_0"/>>> >>
</profileApplication>>> >> <profileApplication
xmi:id="_5TCaPyTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaQCTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_IN8k8MmBEdqBcN1R6Ev WUw"/>>>
>> </eAnnotations>>> >> <appliedProfile>> >>>
href=" pathmap://UML2_MSL_PROFILES/Default.epx#_a_S3wNWLEdiy4IqP8wh jFA"/>>>
>> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaQSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaQiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_IrdAUMmBEdqBcN1R 6EvWUw"/
>>> >> </eAnnotations>>> >> <appliedProfile>> >>>>
>>href=" pathmap://UML2_MSL_PROFILES/Deployment.epx#_vjbuwOvHEdiDX5bj i0iVSA"/
>>> >> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaQyTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaRCTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>>>
>>href=" ../../../AspectProfile/AspectProfileV2.epx#_AGxZwASDEdynusII k9CvaQ "/
>>> >> </eAnnotations>>> >> <appliedProfile>> >>>>
>>href=" ../../../AspectProfile/AspectProfileV2.epx#_NfHmEAPiEdya-unR -gN29A "/
>>> >> </profileApplication>>> >> <profileApplication
xmi:id="_5TCaRSTPEdy_OefkKt3p9g">>> >> <eAnnotations
xmi:id="_5TCaRiTPEdy_OefkKt3p9g">> >>
source="http://www.eclipse.org/uml2/2.0.0/UML">>> >> <references
xmi:type="ecore:EPackage">> >>
href="../../../Profiles/SPTProfile.epx#_Y9vrYc8ZEdqQ3dBBV_QPAw "/>>> >>
</eAnnotations>>> >> <appliedProfile>> >>
href="../../../Profiles/SPTProfile.epx#_ajWfUU6wEdmMdJbJ44xicg "/>>> >>
</profileApplication>>> >> </uml:Model>>> >> <AspectProfile:Advice
xmi:id="_5TCaRyTPEdy_OefkKt3p9g">> >>
base_Activity="_5TCZtSTPEdy_OefkKt3p9g" Type="primary"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKsCTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCZ7CTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:Advice
xmi:id="_5TMKsSTPEdy_OefkKt3p9g">> >>
base_Activity="_5TCZ7yTPEdy_OefkKt3p9g"/>>> >> <AspectProfile:NodePointCut
xmi:id="_5TMKsiTPEdy_OefkKt3p9g">> >>
base_ActivityNode="_5TCaMiTPEdy_OefkKt3p9g" Kind="new"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKsyTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCaNyTPEdy_OefkKt3p9g" Kind="in"/>>> >>
<AspectProfile:EdgePointCut xmi:id="_5TMKtCTPEdy_OefkKt3p9g">> >>
base_ActivityEdge="_5TCaOiTPEdy_OefkKt3p9g" Kind="out"/>>> >> </xmi:XMI>>>
>>>> >>>> >>>> >>>> >>> >>>>>>>
>
Previous Topic:Constructing component diargams
Next Topic:Referencing a uml model element from a ecore model
Goto Forum:
  


Current Time: Tue Apr 23 09:52:21 GMT 2024

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

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

Back to the top