Aamir,
Note that this corresponds to ETypedElement's
/**
* A value indicating that there is an unspecified {@link
#getUpperBound upper bound}.
* @see #getUpperBound()
*/
int UNSPECIFIED_MULTIPLICITY = -2;
Also note that isMany is computed by FeatureMapUtil.isMany because the
multiplicity depends on the multiplicity of the target feature.
Aamir wrote:
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-