[EMF Compare] reference lists seem to be handled differently than containment lists [message #619189] |
Fri, 06 June 2008 00:01 |
Jason Henriksen Messages: 231 Registered: July 2009 |
Senior Member |
|
|
Hi All,
I have XSD like this:
<xsd:complexType name="Floor">
<xsd:sequence>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="roomList"
type="com.ibm.example.building:Room"/>
<xsd:element maxOccurs="unbounded" minOccurs="0" name="fakeList"
type="com.ibm.example.building:Room"/>
</xsd:sequence>
<xsd:attribute name="level" type="xsd:ID"/>
</xsd:complexType>
I remove an item from the roomlist and get this diff node:
<subDiffElements xsi:type="diff:RemoveModelElement">
<rightParent href="altered.xml#2"/>
<leftElement href="original.xml#bed_2"/>
</subDiffElements>
That tells me that bed_2 was removed from floor 2, but it doesn't tell
me which list used to contain the item. Was it the roomList or the
fakeList?
With references, this is no problem:
<subDiffElements xsi:type="diff:RemoveReferenceValue">
<reference
href=" http:///com/ibm/example/Building.ecore#//Room/connectsToList"
/>
<rightElement href="altered.xml#stairs_L2"/>
<leftElement href="original.xml#stairs_L2"/>
<leftRemovedTarget href="original.xml#attic"/>
</subDiffElements>
I can see from the reference url which list was altered (In this
example, connectsToList). Am I doing something wrong that prevents this
from working when I use containment?
Thanks,
Jason Henriksen
|
|
|
Powered by
FUDForum. Page generated in 0.03380 seconds