Skip to main content



      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 04:57 Go to next message
Eclipse UserFriend
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 05:29 Go to previous message
Eclipse UserFriend
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 Jul 19 13:50:18 EDT 2025

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

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

Back to the top