Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Get XMI id of UML2 Element
Get XMI id of UML2 Element [message #898872] Sat, 28 July 2012 17:28 Go to next message
Alfredo Motta is currently offline Alfredo MottaFriend
Messages: 41
Registered: June 2012
Member
Hello everybody,

I am interested in retrieving the xmi:id of a UML2 element
For example in my UML2 model I have a class named "Class1" corresponding to this portion of the XMI

<packagedElement xmi:type="uml:Class" xmi:id="_pEhskNd5EeGsNLQiqvGbrw" name="Class1">


how do I retrieve id xmi:id using the UML2 library?
Thank you

[Updated on: Sat, 28 July 2012 17:29]

Report message to a moderator

Re: Get xmi id of UML2 Element [message #898884 is a reply to message #898872] Sat, 28 July 2012 19:32 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Look at XMLResource.getID()

Regards

Ed Willink


On 28/07/2012 18:28, Alfredo Motta wrote:
> Hello everybody,
>
> I am interested in retrieving the xmi:id of a UML2 element
> For example in my UML2 model I have a class named "Class1"
> corresponding to this portion of the XMI
>
>
> <packagedElement xmi:type="uml:Class" xmi:id="_pEhskNd5EeGsNLQiqvGbrw"
> name="Class1">
>
>
> how do I retrieve id xmi:id using the UML2 library?
> Thank you
Re: Get xmi id of UML2 Element [message #898898 is a reply to message #898884] Sat, 28 July 2012 22:09 Go to previous message
Alfredo Motta is currently offline Alfredo MottaFriend
Messages: 41
Registered: June 2012
Member
Perfect, thank you
Previous Topic:[SOLVED] Cannot retrieve InstanceSpecification with UML2 library
Next Topic:GetParts compared to getOwnedAttributes
Goto Forum:
  


Current Time: Thu Apr 25 00:59:16 GMT 2024

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

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

Back to the top