| [QVTO/OCL] Usage of non-standard "closure" operator [message #548245] |
Wed, 21 July 2010 04:57  |
Christophe Bouhier Messages: 683 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 05:29  |
Ed Willink Messages: 3150 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
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds