Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Elements unique identification
Elements unique identification [message #423001] Sat, 20 September 2008 18:52 Go to next message
Timothy Marc is currently offline Timothy MarcFriend
Messages: 547
Registered: July 2009
Senior Member
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 #423002 is a reply to message #423001] Sat, 20 September 2008 19:06 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous messageGo to next message
Timothy Marc is currently offline Timothy MarcFriend
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 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Timothy Marc is currently offline Timothy MarcFriend
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
>>
Previous Topic:Unable to Apply Profile to my Model
Next Topic:CreateChildCommand and EStore
Goto Forum:
  


Current Time: Wed Jan 22 22:41:38 GMT 2020

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

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

Back to the top