Best practice for checking URI equality [message #1735151] |
Wed, 15 June 2016 21:44 |
Larry LeBron Messages: 124 Registered: October 2015 |
Senior Member |
|
|
I have been using URIs as unique identifiers for positions in my dsl programs.
However, I just discovered that I'm getting unequal versions of URIs for the same position in the code.
Specifically, what I've just observed is one URI for the entity reading:
[code]
platform:/resource/<path>/<filename>#/0/@entities.1
[code]
and then, later, one with:
[code]
revision:/<filename>#/0/@entities.1
[code]
So, is there a best practice I can perform on these different versions to confirm that they're referring to the same point in the code?
For example, perhaps comparing the value of URI.path(), and using that as my identifier, instead of URIs themselves?
Thanks.
|
|
|
Powered by
FUDForum. Page generated in 0.02836 seconds