how to read xmi:id field in EuGENia model file? [message #1834184] |
Wed, 04 November 2020 07:30  |
Eclipse User |
|
|
|
Hi ! my all meta-models are registered,i want to read the xmi:id field of the model file but unable to retrieve its value,any suggestion?
model file :
<?xml version="1.0" encoding="UTF-8"?>
<notation:Diagram xmi:version="2.0" xmlns:xmi="[url]http://www.omg.org/XMI[/url]" xmlns:xsi="[url]http://www.w3.org/2001/XMLSchema-instance[/url]" xmlns:abcd="[url]https://petrinetdsl[/url]" xmlns:ecore="[url]http://www.eclipse.org/emf/2002/Ecore[/url]" xmlns:notation="[url]http://www.eclipse.org/gmf/runtime/1.0.3/notation[/url]" xmi:id="_vSD84LHJEeq1h8ti2UwKzQ" type="Petrinetdsl" name="default.petrinetdsl_diagram" measurementUnit="Pixel">
<children xmi:type="notation:Node" xmi:id="_qLutgLHPEeqGGrut8ExKFg" type="2001">
<children xmi:type="notation:DecorationNode" xmi:id="_qLxJwLHPEeqGGrut8ExKFg" type="5001">
<layoutConstraint xmi:type="notation:Location" xmi:id="_qLxJwbHPEeqGGrut8ExKFg" x="-78" y="7"/>
</children>
<styles xmi:type="notation:DescriptionStyle" xmi:id="_qLvUkLHPEeqGGrut8ExKFg"/>
<element xmi:type="abcd:Place" href="default.petrinetdsl#//@places.0"/>
<layoutConstraint xmi:type="notation:Bounds" xmi:id="_qLvUkbHPEeqGGrut8ExKFg" x="259" y="175"/>
</children>
my code for reading different key and values
[for (aNode: Node | aDiagram.children)]
[aNode/]
[/for]
[aDiagram.children.element/]
[aDiagram.children.styles/]
[aDiagram.children.layoutConstraint/]
Thanks!
[Updated on: Wed, 04 November 2020 08:29] by Moderator
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04158 seconds