|
|
|
Re: XMI ids [message #474998 is a reply to message #474997] |
Wed, 08 August 2007 15:51 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------030902040001030409020502
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Bogdan,
Yes, I was going to suggest that too. This method is slightly more
general in that it will return the xmi:id if there is one but in general
it will return exactly what will appear after the # for the href to that
object...
Bogdan Pistol wrote:
> On Wed, 08 Aug 2007 14:13:01 +0000, Bogdan Pistol wrote:
>
>
>> Hello,
>>
>> How can I get the XMI id of an element?
>>
>> For example in a XMI serialization like this: <packagedElement
>> xmi:type="uml:Package" xmi:id="_NDme0EW5EdycdstRLKXuTQ">
>>
>> I would want to get the "_NDme0EW5EdycdstRLKXuTQ" XMI id. Is this
>> genereated on Resource.save() or when the object is created?
>>
>> Bogdan
>>
>
> I found the solution. With
> someElement.eResource.getURIFragment(someElement) I can get the XMI id of
> the element "someElement".
>
> Bogdan
>
--------------030902040001030409020502
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Bogdan,<br>
<br>
Yes, I was going to suggest that too. This method is slightly more
general in that it will return the xmi:id if there is one but in
general it will return exactly what will appear after the # for the
href to that object...<br>
<br>
<br>
<br>
Bogdan Pistol wrote:
<blockquote cite="mid:f9cken$cni$1@build.eclipse.org" type="cite">
<pre wrap="">On Wed, 08 Aug 2007 14:13:01 +0000, Bogdan Pistol wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
How can I get the XMI id of an element?
For example in a XMI serialization like this: <packagedElement
xmi:type="uml:Package" xmi:id="_NDme0EW5EdycdstRLKXuTQ">
I would want to get the "_NDme0EW5EdycdstRLKXuTQ" XMI id. Is this
genereated on Resource.save() or when the object is created?
Bogdan
</pre>
</blockquote>
<pre wrap=""><!---->
I found the solution. With
someElement.eResource.getURIFragment(someElement) I can get the XMI id of
the element "someElement".
Bogdan
</pre>
</blockquote>
<br>
</body>
</html>
--------------030902040001030409020502--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
|
|
Re: XMI ids [message #624376 is a reply to message #474997] |
Wed, 08 August 2007 15:51 |
Ed Merks Messages: 33218 Registered: July 2009 |
Senior Member |
|
|
This is a multi-part message in MIME format.
--------------030902040001030409020502
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Bogdan,
Yes, I was going to suggest that too. This method is slightly more
general in that it will return the xmi:id if there is one but in general
it will return exactly what will appear after the # for the href to that
object...
Bogdan Pistol wrote:
> On Wed, 08 Aug 2007 14:13:01 +0000, Bogdan Pistol wrote:
>
>
>> Hello,
>>
>> How can I get the XMI id of an element?
>>
>> For example in a XMI serialization like this: <packagedElement
>> xmi:type="uml:Package" xmi:id="_NDme0EW5EdycdstRLKXuTQ">
>>
>> I would want to get the "_NDme0EW5EdycdstRLKXuTQ" XMI id. Is this
>> genereated on Resource.save() or when the object is created?
>>
>> Bogdan
>>
>
> I found the solution. With
> someElement.eResource.getURIFragment(someElement) I can get the XMI id of
> the element "someElement".
>
> Bogdan
>
--------------030902040001030409020502
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: 8bit
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=UTF-8" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Bogdan,<br>
<br>
Yes, I was going to suggest that too. This method is slightly more
general in that it will return the xmi:id if there is one but in
general it will return exactly what will appear after the # for the
href to that object...<br>
<br>
<br>
<br>
Bogdan Pistol wrote:
<blockquote cite="mid:f9cken$cni$1@build.eclipse.org" type="cite">
<pre wrap="">On Wed, 08 Aug 2007 14:13:01 +0000, Bogdan Pistol wrote:
</pre>
<blockquote type="cite">
<pre wrap="">Hello,
How can I get the XMI id of an element?
For example in a XMI serialization like this: <packagedElement
xmi:type="uml:Package" xmi:id="_NDme0EW5EdycdstRLKXuTQ">
I would want to get the "_NDme0EW5EdycdstRLKXuTQ" XMI id. Is this
genereated on Resource.save() or when the object is created?
Bogdan
</pre>
</blockquote>
<pre wrap=""><!---->
I found the solution. With
someElement.eResource.getURIFragment(someElement) I can get the XMI id of
the element "someElement".
Bogdan
</pre>
</blockquote>
<br>
</body>
</html>
--------------030902040001030409020502--
Ed Merks
Professional Support: https://www.macromodeling.com/
|
|
|
Powered by
FUDForum. Page generated in 0.04502 seconds