[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.m2m] [ATL] Ecore metamodel EReference multiplicity -2
|
Hi All,
I have a simple problem. I have an Ecore metamodel with Upper Bound
multiplicity of an EReference as -2 (lower bound is 0). With this, i try
to map the ATL rules, But its not working.
But if I change the Upper Bound to -1 then it works!!! what to do? Is it
implemented in ATL or not? Is there any other way to do so?
Here is the code:
rule root {
from u : UML2!Model
to v : myML!DocumentRoot (component<-u.getCmpt(u)
}
rule component {
from u : UML2!Component
to v : myML!ComponentType(vendor<-'sophia.inria.fr',
library<-'myModel',
name<-u.name,
version<-'1.0')
}
waiting for the reply n thanks in advance,
-aamir-