Skip to main content



      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 10:34
Eclipse UserFriend
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 18:24] by Moderator

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


Current Time: Mon Jun 23 00:10:32 EDT 2025

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

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

Back to the top