I'd like to get the whole set of containers for an object.
i.e. {self.oclContainer(); self.oclContainer().oclContainer(); self.oclContainer().oclContainer().oclContainer(); etc.}
On 04/11/2012 14:54, Andrea Sindico wrote:
> I'd like to get the whole set of containers for an object. i.e.
> {self.oclContainer(); self.oclContainer().oclContainer();
> self.oclContainer().oclContainer().oclContainer(); etc.}
>
> What is the right way to do that?
>
> Thank you
> Regards
On 04/11/2012 15:44, Andrea Sindico wrote:
> Ok for those who may have the same question the answer is
>
> self.oclAsType(OclElement)->closure(oclContainer())
>
Ed it seems that when using Complete OCL to validate an XText language as you explained in http://www.slideshare.net/EdWillink/, if I create a <<definition>> Constraint (i.e. def:) initialized with an attribute retrieved after a closure (eventually filtered to just get one object) I get strange errors in the XText editor.
On 04/11/2012 22:18, Andrea Sindico wrote:
> Ed it seems that when using Complete OCL to validate an XText language
> as you explained in http://www.slideshare.net/EdWillink/, if I create
> a <<definition>> Constraint (i.e. def:) initialized with an attribute
> retrieved after a closure (eventually filtered to just get one object)
> I get strange errors in the XText editor.