| [news.eclipse.modeling.mdt.ocl] Re: How to check the types of containment? |
Hi Christian, only for completeness... > Content assist may not show you the "closure" iterator because it is not > OMG-standard OCL. However, it should parse. ...this result comes: Usage of non-standard "closure" iterator Can you please explain a little bit this _expression_: self.exportedEvents->forAll(ev| ev->closure(eContainer())->includes(self) )
Especially closure(eContainer())does what exactly? Does it return all elements contain ev? Then it should only be one and self should be included in this closure, right. Do I understand this correctly?
Just for curiosity. The following expressions parses correctly self.exportedEvents ->forAll(ev| self.eContents() ->select(x| x.oclIsTypeOf(CRUISeMetaModel::Event)) ->includes(ev) ) But I wonder about self.eContents(). Is the semantic like I used it here?
best regards, Gilbert