Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » packagedElement <-Sequence{p.packagedelement}
packagedElement <-Sequence{p.packagedelement} [message #535365] Sat, 22 May 2010 20:12 Go to next message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
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 08:17 Go to previous messageGo to next message
Sylvain EVEILLARD is currently offline Sylvain EVEILLARDFriend
Messages: 556
Registered: July 2009
Senior Member
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 11:04 Go to previous message
wafaa is currently offline wafaaFriend
Messages: 163
Registered: January 2010
Location: Egypt
Senior Member
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 Nov 12 23:01:37 GMT 2024

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

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

Back to the top