Skip to main content



      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 04:26 Go to next message
Eclipse UserFriend
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 02:37 Go to previous messageGo to next message
Eclipse UserFriend
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 12:42 Go to previous messageGo to next message
Eclipse UserFriend
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 09:01 Go to previous messageGo to next message
Eclipse UserFriend
> 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] Tue, 30 October 2018 21:52 Go to previous message
Eclipse UserFriend
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: Thu Jun 19 16:15:59 EDT 2025

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

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

Back to the top