Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » OCL » [QVTO/OCL] Usage of non-standard "closure" operator
[QVTO/OCL] Usage of non-standard "closure" operator [message #548245] Wed, 21 July 2010 08:57 Go to next message
Christophe Bouhier is currently offline Christophe Bouhier
Messages: 914
Registered: July 2009
Senior Member
Hi,

With OCL I can use the closure() operator to get a collection of nested
elements.


However in QVTO, I am not sure about the correct syntax.
This below, would give me a warning: Usage of non-standard "closure"
operator"

this.parent.kids->closure(this.parent.kids.kids)->AsOrderedSet();


Is this even supported in QVTO?
thx Christophe
Re: [QVTO/OCL] Usage of non-standard "closure" operator [message #548263 is a reply to message #548245] Wed, 21 July 2010 09:29 Go to previous message
Ed Willink is currently offline Ed Willink
Messages: 4037
Registered: July 2009
Senior Member
Hi Christophe

asOrderedSet rather than AsOrderedSet.

The MDT/OCL 3.0.0 OCL Standard Library is not easily extensible, so QVTo
and Acceleo have to work much harder than they should to create extended
libraries. It is quite possible that MDT/OCL extensions are not
propagated through.

If you're getting the warning it's probably working. There is an OCL
PromblemOption you can set to switch it off.

Making the OCL Standard Library model-defined is an activity for MDT/OCL
4.0 in Indigo.

Regards

Ed Willink

On 21/07/2010 09:57, Christophe Bouhier wrote:
> Hi,
>
> With OCL I can use the closure() operator to get a collection of nested
> elements.
>
>
> However in QVTO, I am not sure about the correct syntax.
> This below, would give me a warning: Usage of non-standard "closure"
> operator"
>
> this.parent.kids->closure(this.parent.kids.kids)->AsOrderedSet();
>
>
> Is this even supported in QVTO?
> thx Christophe
Previous Topic:Helper Problem _ I don't know how to solve?
Next Topic:Problem with Emfatic + OCL Annotation
Goto Forum:
  


Current Time: Wed Sep 03 02:31:03 GMT 2014

Powered by FUDForum. Page generated in 0.04072 seconds