Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Requirements Modeling Framework  » How the ReqIF IDs are generated
How the ReqIF IDs are generated [message #1796808] Fri, 19 October 2018 08:26 Go to next message
Mikail Yayla is currently offline Mikail YaylaFriend
Messages: 3
Registered: October 2018
Junior Member
Hello,

I'm trying to find out how identifiers like "_f3jAgMpOEeiqhq5afgXBhA" in <SPEC-OBJECT IDENTIFIER="_f3jAgMpOEeiqhq5afgXBhA" in ProR are generated, but from searching in the source code I could not find this information. Could you please help me on this ?

Thanks!
Re: How the ReqIF IDs are generated [message #1796886 is a reply to message #1796808] Sun, 21 October 2018 06:37 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 233
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
Setting UUIDs is a feature of EMF. Check out this generated file:

org.eclipse.rmf.reqif10.serialization.ReqIF10ResourceImpl
Re: How the ReqIF IDs are generated [message #1797303 is a reply to message #1796886] Mon, 29 October 2018 16:42 Go to previous messageGo to next message
Mikail Yayla is currently offline Mikail YaylaFriend
Messages: 3
Registered: October 2018
Junior Member
Thank you for your help.

Unfortunately I could not find how the UUIDs as in <REQ-IF-HEADER IDENTIFIER="_iD0y4c4UEeilM_Q6XUt6MQ"> are generated. I can only find the setID(String identifier) functions, but not a place where this method is called with a generated UUID that begins with a "_".
In /org.eclipse.rmf/org.eclipse.rmf.reqif10.common.Reqif10Editor, I could find that UUIDs of the form <REQ-IF-HEADER IDENTIFIER="rmf-40535036-7ed8-4170-ab8d-f273beb8a233"> with a "rmf-" at the beginning are generated using a function in java.util.UUID.

But where in the source code and how are the UUIDs beginning with "_" generated ?

And what is the difference between UUIDs beginning with "_" (e.g. "_iD0y4c4UEeilM_Q6XUt6MQ") and UUIDs with "rmf-" (e.g. "rmf-40535036-7ed8-4170-ab8d-f273beb8a233") ?

Re: How the ReqIF IDs are generated [message #1797377 is a reply to message #1797303] Tue, 30 October 2018 13:01 Go to previous messageGo to next message
Michael Jastram is currently offline Michael JastramFriend
Messages: 233
Registered: April 2010
Location: Düsseldorf, Germany
Senior Member
> But where in the source code and how are the UUIDs beginning with "_" generated ?

Nowhere, or more precise, by the Eclipse Modeling Framework (EMF). If you want to find the code, you need to inspect the EMF code.

> And what is the difference between UUIDs beginning with "_" (e.g. "_iD0y4c4UEeilM_Q6XUt6MQ") and UUIDs with "rmf-" (e.g. "rmf-40535036-7ed8-4170-ab8d-f273beb8a233") ?

This is simply a scenario where we decided not to use EMF for UUID-generation. That's why it's done explicitly. The rmf- prefix has simply been added for verbosity in the XML.

Best,
- Michael
Re: How the ReqIF IDs are generated [message #1797443 is a reply to message #1797377] Wed, 31 October 2018 01:52 Go to previous message
Mikail Yayla is currently offline Mikail YaylaFriend
Messages: 3
Registered: October 2018
Junior Member
I found the UUID generation with the "_" in the beginning in this class in EMF.

Thanks a lot for your help and best wishes from Essen.
Previous Topic:Help needed, plugin can not be installed: http://download.eclipse.org/rmf/updates/latest
Next Topic:Customizing the ID-Generator
Goto Forum:
  


Current Time: Mon Jan 20 18:53:07 GMT 2020

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

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

Back to the top