Can Validation handle inter-model constraints? [message #596086] |
Thu, 23 November 2006 14:27 |
Eclipse User |
|
|
|
Originally posted by: rasmusmodsat.hotmail.com
Hi,
can the Validation framework handle constraints that span different EMF
models? So far, I've only seen examples of constraints on a single model.
My concrete problem is that I have two models a.ecore and b.ecore where the
following constraint should hold: forall instances of class A in a.ecore
there should be a corresponding instance of class B in b.ecore with the same
attribute values. The way I'm solving it at the moment is by writing some
custom java code.
I would prefer to write a constraint in an OCL-like manner. This seems to be
more concise and maintainable.
Idea: perhaps I could specify an extent which spanned two models in the
Query API's setExtentMap(..) method?
If anyone have ideas, references, links or anything else, I would be very
interested. Open source solutions, code snippets or even academic papers ;)
-- HW
|
|
|
Powered by
FUDForum. Page generated in 0.02919 seconds