Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » how to deal with nestedPackage of a package
how to deal with nestedPackage of a package [message #542854] Sat, 26 June 2010 19:50
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
hi all

can some one direct me to the correct solution for creating packaged
element of a package like this
the input is similar to - Model A
- package B
- package C
Class D
Class E
- package F
Class G
Class H

I want to make all elements in all the nested package (which is any
nested package of B) elements of the main package B

and (all the nested packages in the main package are not transformed)

I want the out put to be

Model A
package B
Class C
Class G

I used this transformation

rule Package {
p : UML!Package
(p.hasStereotype('Ontology') )
out : UML!Package (
name <- ,
packagedElement <- p.packagedElement


but then the output is in the main model which I do not want

Model A
package B
Class C
Class D
Class G
Class H
Previous Topic:how to deal with nestedPackages!!
Next Topic:how to access a tagged value of a stereotype??
Goto Forum:

Current Time: Fri Apr 19 15:40:42 GMT 2024

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

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

Back to the top