Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » packagedElement opposite?
packagedElement opposite? [message #624935] Sat, 22 September 2007 11:38
John Smith is currently offline John SmithFriend
Messages: 137
Registered: July 2009
Senior Member
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 Apr 20 03:41:46 GMT 2024

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

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

Back to the top