Re: Comparing two models for differences

Holger Krug <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.mdr.devel
Message-ID <[email protected]>
On Mon, Jul 22, 2002 at 09:51:30PM -0500, Brian Smith wrote:
>  I am getting diffs that look like 
> the one below. The problem is basically that MDR is giving me the "root 
> nodes" in an indeterminate order. Obviously, that is not incorrect, but 
> it would be nice if MDR would at least provide "best effort" in 
> preserving the ordering of _all_ collections, whether they are 
> explicitly marked isOrdered=true or not.

Wouldn't it be possible to solve your problems by reordering XMI files
outside MDR by applying some post-processor which lexicographically
reorders all collections with isOrdered=false and, if necessary,
replaces all xmi.id's by a canonical series of xmi.id's ? I also have
a use-case for this: I would like to derive something like a hashCode
for models which is identical for different representations of the
same model.

-- 
Holger Krug
[email protected]
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.