Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTO/OCL] Usage of non-standard "closure" operator
[QVTO/OCL] Usage of non-standard "closure" operator [message #548248] Wed, 21 July 2010 08:57 Go to next message
Christophe Bouhier is currently offline Christophe BouhierFriend
Messages: 937
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 #548259 is a reply to message #548248] Wed, 21 July 2010 09:29 Go to previous message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7679
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:[Xtend] Problem with a specific transformation
Next Topic:SOLVED! :-) [ATL] Sequence with values but how to get further?
Goto Forum:
  


Current Time: Sat Nov 09 00:35:58 GMT 2024

Powered by FUDForum. Page generated in 0.02936 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top