Skip to main content



      Home
Home » Modeling » QVT-OML » Transformation involving UML profiles
Transformation involving UML profiles [message #1859449] Thu, 08 June 2023 06:45 Go to next message
Eclipse UserFriend
Hello,

I was curious to know how transformations involving UML profile would work.
For instance, consider that you have a UML profile (.ecore) and UML (.ecore) and another language TestLanguage (.ecore). When defining the transformations would the transformations be from UML concepts to TestLanguage concepts? Would the stereotypes in the UML profile be then used as conditions/constraints/filters during the transformations? Can anyone please elaborate on this?

Thank you!
Re: Transformation involving UML profiles [message #1859454 is a reply to message #1859449] Thu, 08 June 2023 12:59 Go to previous message
Eclipse UserFriend
Hi

The UML specification has never been clear on how stereotypes really work. Remarkably the OCL specification makes no mention of them at all, consequently QVTo that exploits OCL has minimal support.

The original Classic Eclipse OCL provided no support, but users are able to leverage the Eclipse UML2 Java API. This has significant problems through lack of type safety when Strings rather than Elements are used.

For the Unified Pivot-based Eclipse OCL, I extrapolated a sensible design from the one example in the UML spec to provide typesafe OCL navigation. This is available when writing UML constraints in Papyrus.

Unfortunately Eclipse QVTo has yet to migrate to the Pivot-based Eclipse OCL and so your only choice in QVTo is the Java API.

Stereotypes provide a mechanism for extending classes in ways that do not respect the original model, so you have to write your transformation to specifically access the extensions. Your access code may be characterized as a condition/constraint/filter; it's just a matter of style / terminology prejudice.

Regards

Ed Willink
Previous Topic:Resolution operations for objects in other containers.
Next Topic:Type references for nested EClasses
Goto Forum:
  


Current Time: Wed May 14 21:38:57 EDT 2025

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

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

Back to the top