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
hello

i have this code
rule ontology2Package {
from
p : UML!"uml::Package" (
p.hasStereotype('ontology')
)
to
out : UML!"uml::Package" (
name <- p.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: Thu Apr 25 02:28:33 GMT 2024

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

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

Back to the top