Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » Compare » can't find kind=ADD(can't find kind=ADD)
can't find kind=ADD [message #1756264] Tue, 14 March 2017 16:59 Go to next message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Hi,
I saved the comparison result as text file and using Epsilon query language to query the comparison as XML file and i got all information i need using identifiers (matching the identifiers in the comparison with the identifiers in the compared UML models)but i noticed that difference kind =ADD is missing i mean that the difference is available but the tag name kind is missing although its there when the difference is delete or change .

<submatches>
        <differences xsi:type="compare:ReferenceChange" equivalence="//@equivalences.2">
          <reference href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityEdge/inPartition"/>
          <value href="platform:/resource/evolving%20Source%20Model/changedExample1.uml#_miVR0DrKEeWwIYjMw9yGdw"/>
        </differences>
        <left href="platform:/resource/evolving%20Source%20Model/changedExample1.uml#_7TFn8MYgEeaBfprPkglx7w"/>
        <right href="platform:/resource/evolving%20Source%20Model/Example1.uml#_7TFn8MYgEeaBfprPkglx7w"/>
      </submatches>


<submatches>
        <differences xsi:type="compare:ReferenceChange" requires="//@matches.0/@submatches.0/@differences.8" requiredBy="//@matches.0/@submatches.0/@differences.9" kind="CHANGE" equivalence="//@equivalences.8">
          <reference href="http://www.eclipse.org/uml2/5.0.0/UML#//ActivityEdge/target"/>
          <value href="platform:/resource/evolving%20Source%20Model/changedExample1.uml#_NPctIP7HEea76e2Bdrm2fA"/>
        </differences>
        <left href="platform:/resource/evolving%20Source%20Model/changedExample1.uml#_RXhEcDrLEeWwIYjMw9yGdw"/>
        <right href="platform:/resource/evolving%20Source%20Model/Example1.uml#_RXhEcDrLEeWwIYjMw9yGdw"/>
      </submatches>


Is there any trick to see kind ="ADD".

I attached the comparison file.

Thanks,
Taghreed
Re: can't find kind=ADD [message #1756359 is a reply to message #1756264] Wed, 15 March 2017 20:17 Go to previous messageGo to next message
Philip Langer is currently offline Philip LangerFriend
Messages: 99
Registered: March 2015
Location: Vienna, Austria
Member

Hi,

I haven't double-checked, but I guess the explicitly specified difference kind ADD is missing, because it is the default value. Default values are omitted in the XMI serialization.

If this is the case, then you can either just assume that no explicit difference kind means ADD, or you may check if there is a serialization option to turn on the serialization of default values (not sure there is one though).

Best wishes,

Philip

--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/


--
Philip Langer

Get professional Eclipse developer support:
http://eclipsesource.com/en/services/developer-support/
Re: can't find kind=ADD [message #1756363 is a reply to message #1756359] Wed, 15 March 2017 20:42 Go to previous message
taghreed altamimi is currently offline taghreed altamimiFriend
Messages: 184
Registered: October 2014
Senior Member
Thanks very much
Previous Topic:Ignoring attributes depending on their value
Next Topic:Comparing two structurally equal EObjects yields PSEUDO conflict [updated]
Goto Forum:
  


Current Time: Thu Apr 25 15:49:39 GMT 2024

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

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

Back to the top