|
|
|
|
Re: Type of variable in "let" not agreeing with oclIsTypeOf/oclAsType [message #650823 is a reply to message #650665] |
Wed, 26 January 2011 17:40 |
Volker Stolz Messages: 63 Registered: July 2009 |
Member |
|
|
Hm, I've found a kind of workaround:
let i : uml::Interface = self.supplier.getValue(self.supplier.getAppliedStereotype('rCOS::ContractInterface')->any(true),'interface')->any(true).oclAsType(uml::Interface) in i
It looks like it may actually be my fault since accessing the stereotype with getValue() yields an EJavaObject in Ecore, and I'm not sure if I should expect OCL to find out that the stereotype actually has exactly-once multiplicity. The additional "any(true)" will do the right thing here.
Volker
[Updated on: Wed, 26 January 2011 17:56] Report message to a moderator
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04734 seconds