Skip to main content



      Home
Home » Modeling » UML2 » packagedElement opposite?
packagedElement opposite? [message #624935] Sat, 22 September 2007 07:38
Eclipse UserFriend
I wonder why there is no opposite (and changeable) feature of
"packagedElement" im UML2.
This makes it very hard to use this UML2 metamodel in e.g. QVT
transformations, in contrast to UML1.x.

E.g. I can use "packagedElement" like this


enforce domain forward boundPackage: uml::Package {
packagedElement = comp : uml::Component {
name = 'Business Component'
}
};



to insert a component into a package.


However this would be the ideal solution (only one
ObjectTemplateExpression):


enforce domain forward comp : uml::Component {
owner = boundPackage,
name = 'Business Component'
};

Though the QVT "workaround" is not so dramatic in this example, in other
examples I have to use additionally new relation domains and
when-conditions, so inexistent opposite features is really annoying when
programming QVT.


Is it a good idea to perhaps modify the UML.ecore, add the opposite
"owner" feature on myself, regenerate model code and still expect that
the UML2 Tools editors can work with it (well I already tried, but my
Eclipse crashed)? However I do not aim an official UML2 specification
change..


Or any other idea?
Previous Topic:Profiles eCore <-> UML
Next Topic:Re: eKeys in UML2 export/import lost?
Goto Forum:
  


Current Time: Sat Aug 30 13:07:17 EDT 2025

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

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

Back to the top