Skip to main content



      Home
Home » Modeling » QVT-OML » Remove object in place transformation
Remove object in place transformation [message #1861672] Thu, 26 October 2023 10:20 Go to next message
Eclipse UserFriend
Hi,

I have been trying to remove and object in an in place transformation in. QVTo but apparently there is not an expression that can directly do that. Any workarounds? thanks!
Re: Remove object in place transformation [message #1861679 is a reply to message #1861672] Fri, 27 October 2023 03:32 Go to previous messageGo to next message
Eclipse UserFriend
I addressed this be using the excluding() operation and returning the new set of elements excluding the one I wanted to remove. Not sure if it is the best way, but it seems to work :)
Re: Remove object in place transformation [message #1861798 is a reply to message #1861679] Sat, 04 November 2023 05:43 Go to previous messageGo to next message
Eclipse UserFriend
In truly declaration transformations there is no delete; just a deliberate failure to create/copy.

I tend to think of QVTo as semi-declarative. In this case the don't create/copy approach is applicable and so excluding from a copy is a sensible approach.
Re: Remove object in place transformation [message #1862122 is a reply to message #1861672] Tue, 14 November 2023 03:38 Go to previous message
Eclipse UserFriend
Klarise Hund wrote on Thu, 26 October 2023 10:20
Hi,

I have been trying to remove and object in an in place transformation in. QVTo but apparently there is not an expression that can directly do that. Any workarounds? thanks!

Hi

There is a removeElement(...) operation that you can invoke on the respective Model to remove a given Element from it. It should do what you want.

Kind regards
Christopher
Previous Topic:Create QVTo project programmatically
Next Topic:Propagate warning information to ExecutionDiagnostic
Goto Forum:
  


Current Time: Thu Jun 19 08:59:22 EDT 2025

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

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

Back to the top