OCL cannot find feature in link target constraint body [message #540300] |
Tue, 15 June 2010 10:53  |
Eclipse User |
|
|
|
Hi
I need some help using OCL in a GMF target link constraint following this guide here.
In my case I have an EClass "Type" with an EAttribute "interface". Another EClass "Class" inherites "Type" and provides an additional containment EReference "superTypes" (0..*).
Now, specifying "self.interface" in the body of my link target constraint does work fine. However, using "self.superTypes->isEmpty()" I get this error:
Invalid expression body 'if oppositeEnd.interface then
self.interface
else
not self.interface and self.superTypes.size() < 1
endif'. Cause: Unrecognized variable: (superTypes)
As I said, as soon as I remove " and self.superTypes.size() < 1" it is working and yes, I checked that my "Class" has a feature "superTypes".
Can anybody help me here?
Cheers
Rob
|
|
|
|
Powered by
FUDForum. Page generated in 0.03182 seconds