how to deal with nestedPackage of a package [message #542854] |
Sat, 26 June 2010 19:50 |
wafaa 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
ClassD
Class G
ClassH
I used this transformation
rule Package {
from
p : UML!Package
(p.hasStereotype('Ontology') )
to
out : UML!Package (
name <- p.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
|
|
|
Powered by
FUDForum. Page generated in 0.02921 seconds