Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Wed, 14 May 2008 02:21 Go to next message
Victor Hugo is currently offline Victor HugoFriend
Messages: 20
Registered: July 2009
Junior Member
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?

best regards
Re: [ATL] problem with namespace in uml2 models transformation [message #81464 is a reply to message #81189] Fri, 16 May 2008 11:15 Go to previous message
Geam Carlos is currently offline Geam CarlosFriend
Messages: 17
Registered: July 2009
Junior Member
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
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 May 28 02:25:15 GMT 2020

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

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

Back to the top