[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.gmf] GMF mapping Audit Rules
|
- From: aachila@xxxxxxxxxxx (Achilleas )
- Date: Wed, 4 Feb 2009 12:05:00 +0000 (UTC)
- Newsgroups: eclipse.modeling.gmf
- Organization: Eclipse
- User-agent: NewsPortal/0.36 (http://florian-amrhein.de/newsportal)
Hi,
I will like to ask if it is possible to compare two attributes using one
audit rule;one constraint.
For instance if i have the following metamodel
Root (aggregates classes1,classes2)
Class1(includes EAttribute value1) Class2(includes EAttribute value2)
Usually when a constraint is written it will be of the form:
Domain Element Target: |Class1::EClass
Class1.allInstances()->forAll( c1, c2 | c1 <> c2 implies c1.value1 <>
c2.value1 )
What if I want to compare the values of instances of the Class1 with
instances of the Class2? Is there a way to define two Domain Element
Targets? Could it be done directly from the Root class specifying this as
the Domain Element Target?
Thanks,
Achilleas