> -----Original Message-----
> From: Henri Yandell [mailto:[EMAIL PROTECTED]]
> Let's say you ask the class to do a bean-diff. What would you 
> get back?
> How would you represent the three concepts of changed, added, removed?

Well, I'm not sure about the removed part--for this current silly
application I don't have to concern myself with it.

But otherwise, you'd get back a graph whose only contents would be
"containers", and you'd only set properties on those containers that had
changed.

So an Employee might work for a Manager, and might have three properties,
salary among them, and if, given two graphs, only the salary for one
employee in the second graph had changed, you'd return a graph featuring a
Manager (with his employees property set to contain exactly one employee)
whose one Employee would have only one property set, viz. the salary
property (with the new value).

I can't see how removals would work in this case.  Perhaps that's reason
enough to scrap the idea of making this generic and just rolling it myself?
We're almost in set-theory land here, but not quite, which is what makes it
tricky.

Laird

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to