Home » Modeling » EMF » Elements unique identification
|
Re: Elements unique identification [message #423002 is a reply to message #423001] |
Sat, 20 September 2008 19:06 |
Eclipse User |
|
|
|
Originally posted by: cdamus.zeligsoft.com
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 #423205 is a reply to message #423002] |
Wed, 24 September 2008 20:04 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
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 20: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 05:49 |
Timothy Marc Messages: 547 Registered: July 2009 |
Senior Member |
|
|
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: Wed Sep 18 19:39:21 GMT 2024
Powered by FUDForum. Page generated in 0.04344 seconds
|