Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem with namespace in uml2 models transformation
[ATL] problem with namespace in uml2 models transformation [message #81189] Tue, 13 May 2008 22:21 Go to next message
Eclipse UserFriend
Hi people,

I`m migrating an atl transformation from uml1.4 to uml2 but i cannot find
how to set namespace of elements in uml2 model.
In uml1.4 i use this code to set namespace in each element:

namespace <-if thisModule.allMergeElements(s.namespace)
then s.namespace
else s.namespace.fromSourceModel() endif


someone can help on how i write this code when i`m using uml2 model?

[]`s
best regards
Re: [ATL] problem with namespace in uml2 models transformation [message #81464 is a reply to message #81189] Fri, 16 May 2008 07:15 Go to previous message
Eclipse UserFriend
I am with the same doubt. The rule that I am wanting to migrate to uml2 is
as follows:

rule newClass {
from className : String, namespace : String
to t : UML!Class (
name <- className,
visibility <- #vk_public,
isAbstract <- false,
namespace <- if thisModule.packageExists(namespace) then
thisModule.getPackage(namespace)
else
thisModule.newPackage(thisModule.pckPSM)
endif,
stereotype <- thisModule.getStereotype('aspect')
)
}


Can anyone help?
Previous Topic:ATL and 3.4M6
Next Topic:[ATL] transformation of UML metamodel specialization
Goto Forum:
  


Current Time: Thu Jul 17 03:24:09 EDT 2025

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

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

Back to the top