Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » packagedElement <-Sequence{p.packagedelement}
packagedElement <-Sequence{p.packagedelement} [message #535365] Sat, 22 May 2010 16:12 Go to next message
Eclipse UserFriend
Hi

how can I make this binding from uml packages

rule ontology2Package {
from
p : UML!"uml::Package"
( p.hasStereotype('ontology') )
to
out : UML!"uml::Package" (
name <- p.name,
packagedElement <- Sequence{p.packagedelement} -> select(P|P.hasStereotype('ontoclass'))

)
}

I want to transfer all the src package element to the target
is it enough to say

packagedElemet <- p.packagedElement
or what???
Re: packagedElement <-Sequence{p.packagedelement} [message #535664 is a reply to message #535365] Tue, 25 May 2010 04:17 Go to previous messageGo to next message
Eclipse UserFriend
packagedElement <- p.packagedElement is correct but be careful that this will only work for the packaged elements that are transformed.
Re: packagedElement <-Sequence{p.packagedelement} [message #535708 is a reply to message #535664] Tue, 25 May 2010 07:04 Go to previous message
Eclipse UserFriend
Sylvain EVEILLARD wrote on Tue, 25 May 2010 11:17
packagedElement <- p.packagedElement is correct but be careful that this will only work for the packaged elements that are transformed.



hi syllvain and hope u spend good and long weekend

I tried that all
actually the code works well for model and package but classes when matched cause the following

splitted elements (packages are not child of model and class is not child of package)

and no names is binded


actually I thought for refinement but i am not modifying only, i am deleting and so on..


i do not know what is up..

i tried another approach, and will put my questions when needed

thanks alot and really million thanks to ur cooperation
Previous Topic:QVT : Element Name Filtering
Next Topic:[ATL]How to register ATL Meta Model
Goto Forum:
  


Current Time: Tue Jun 17 14:06:47 EDT 2025

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

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

Back to the top