Home » Modeling » EMF » Elements unique identification
Elements unique identification [message #423001] |
Sat, 20 September 2008 14:52  |
Eclipse User |
|
|
|
Hi all,
i didn't have found anything in the web, so a question concerning the id's
of model elements for traceability:
does the emf provides capabilities for the automatic generation of id's for
the instances of an Ecore model?
I think, this is an essential requirement for traceability, isn't it?
Thanks for all
Timothy
|
|
| |
Re: Elements unique identification [message #423205 is a reply to message #423002] |
Wed, 24 September 2008 16:04   |
Eclipse User |
|
|
|
Hey Chris,
i've found this useUUIDs() method in XMLResourceImpl, but didn't found a
posiibility to turn this save option on. I thought, that this would be also
an XMLResource save option, but it isn't so. So, cna you tell me, how to
turn this uuid generation on. I would appreciate this.
Thx
Timothy
"Christian W. Damus" <cdamus@zeligsoft.com> schrieb im Newsbeitrag
news:gb3hke$t78$1@build.eclipse.org...
> Hi, Timothy,
>
> The XML Resource implementation provided by EMF optionally assigns UUIDs
> to its contained EObjects. These are obtained from the
> EcoreUtil::generateUUID() method.
>
> HTH,
>
> Christian
>
>
> Timothy Marc wrote:
>> Hi all,
>>
>> i didn't have found anything in the web, so a question concerning the
>> id's of model elements for traceability:
>> does the emf provides capabilities for the automatic generation of id's
>> for the instances of an Ecore model?
>>
>> I think, this is an essential requirement for traceability, isn't it?
>>
>> Thanks for all
>>
>> Timothy
|
|
|
Re: Elements unique identification [message #423206 is a reply to message #423205] |
Wed, 24 September 2008 16:20   |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
Hi, Timothy,
It isn't a save option. Your resource implementation needs to override
XMLResourceImpl::useUUIDs() to return true.
At least, this is how GMF's resource implementation does it.
cW
Timothy Marc wrote:
> Hey Chris,
>
> i've found this useUUIDs() method in XMLResourceImpl, but didn't found a
> posiibility to turn this save option on. I thought, that this would be also
> an XMLResource save option, but it isn't so. So, cna you tell me, how to
> turn this uuid generation on. I would appreciate this.
>
> Thx
> Timothy
> "Christian W. Damus" <cdamus@zeligsoft.com> schrieb im Newsbeitrag
> news:gb3hke$t78$1@build.eclipse.org...
>> Hi, Timothy,
>>
>> The XML Resource implementation provided by EMF optionally assigns UUIDs
>> to its contained EObjects. These are obtained from the
>> EcoreUtil::generateUUID() method.
>>
>> HTH,
>>
>> Christian
>>
>>
>> Timothy Marc wrote:
>>> Hi all,
>>>
>>> i didn't have found anything in the web, so a question concerning the
>>> id's of model elements for traceability:
>>> does the emf provides capabilities for the automatic generation of id's
>>> for the instances of an Ecore model?
>>>
>>> I think, this is an essential requirement for traceability, isn't it?
>>>
>>> Thanks for all
>>>
>>> Timothy
>
>
|
|
|
Re: Elements unique identification [message #423219 is a reply to message #423206] |
Thu, 25 September 2008 01:49  |
Eclipse User |
|
|
|
Thanks a lot
Timothy
"Christian W. Damus" <cdamus@zeligsoft.com> schrieb im Newsbeitrag
news:gbe7du$rtc$1@build.eclipse.org...
> Hi, Timothy,
>
> It isn't a save option. Your resource implementation needs to override
> XMLResourceImpl::useUUIDs() to return true.
>
> At least, this is how GMF's resource implementation does it.
>
> cW
>
> Timothy Marc wrote:
>> Hey Chris,
>>
>> i've found this useUUIDs() method in XMLResourceImpl, but didn't found a
>> posiibility to turn this save option on. I thought, that this would be
>> also an XMLResource save option, but it isn't so. So, cna you tell me,
>> how to turn this uuid generation on. I would appreciate this.
>>
>> Thx
>> Timothy
>> "Christian W. Damus" <cdamus@zeligsoft.com> schrieb im Newsbeitrag
>> news:gb3hke$t78$1@build.eclipse.org...
>>> Hi, Timothy,
>>>
>>> The XML Resource implementation provided by EMF optionally assigns UUIDs
>>> to its contained EObjects. These are obtained from the
>>> EcoreUtil::generateUUID() method.
>>>
>>> HTH,
>>>
>>> Christian
>>>
>>>
>>> Timothy Marc wrote:
>>>> Hi all,
>>>>
>>>> i didn't have found anything in the web, so a question concerning the
>>>> id's of model elements for traceability:
>>>> does the emf provides capabilities for the automatic generation of id's
>>>> for the instances of an Ecore model?
>>>>
>>>> I think, this is an essential requirement for traceability, isn't it?
>>>>
>>>> Thanks for all
>>>>
>>>> Timothy
>>
|
|
|
Goto Forum:
Current Time: Thu Jul 24 18:16:23 EDT 2025
Powered by FUDForum. Page generated in 0.04554 seconds
|