Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » how to transform the uml package with all its packagedElement(the tested code is below)
how to transform the uml package with all its packagedElement [message #535202] Fri, 21 May 2010 14:34
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member

i have this code
rule ontology2Package {
p : UML!"uml::Package" (
out : UML!"uml::Package" (
name <-,
-- packagedElement <- p.packagedElement
-- packageableElement <- p.packageableElement
--ownedElement <- p.ownedElement
packagedElement <- p.packagedElement -> select(e |e.oclIsTypeOf(UML!Class))and e.hasStereotype('ontoclass'))

but I do not know how to tell the resulted package to contain all the packagedelelement from the target to the src.

when applying this code the resulted model is not nestedneither named

[Updated on: Fri, 21 May 2010 22:24]

Report message to a moderator

Previous Topic:convert sequence
Next Topic:[ATL] Applying stereotypes in refinement mode
Goto Forum:

Current Time: Mon Apr 19 01:06:04 GMT 2021

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

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

Back to the top