Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] How to Genenerate UML Model primitivetype pathmap from Other Model
[ATL] How to Genenerate UML Model primitivetype pathmap from Other Model [message #108530] Wed, 22 July 2009 05:31 Go to next message
Eclipse UserFriend
Hello

I am felling problem in assigning href to UML primityveType. Consider the
example

rule Term2PrimitiveType {

from
s:SBVR!Term(s.meaning.oclIsTypeOf(SBVR!ObjectType)
and (s.expression.value='integer'
or s.expression.value='text'
or s.expression.value='number'
or s.expression.value='boolean'))
to
t : UML!PrimitiveType (
name <- if s.expression.value='integer'then 'Integer'
else if s.expression.value='text' then 'String'
else if s.expression.value='number' then 'UnlimitedNatural'
else 'Boolean' endif endif endif
)
}

Excerpt of Output File :

<uml:PrimitiveType xmi:id="_KLe-oHSAEd64neGfJpWtXQ" name="String"/>
<uml:PrimitiveType xmi:id="_KLe-oXSAEd64neGfJpWtXQ" name="Integer"/>
<uml:PrimitiveType xmi:id="_KLe-onSAEd64neGfJpWtXQ" name="UnlimitedNatural
/>

But I need to get this :

<uml:PrimitiveType xmi:id="_KLe-oHSAEd64neGfJpWtXQ" name="String" href=
pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#String"/>
<uml:PrimitiveType xmi:id="_KLe-oXSAEd64neGfJpWtXQ" name="Integer" href=
pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Intege r"/>
<uml:PrimitiveType xmi:id="_KLe-onSAEd64neGfJpWtXQ" name="UnlimitedNatural"
href=" pathmap://UML_LIBRARIES/UMLPrimitiveTypes.library.uml#Unlimi tedNatural
/>

In this UML data Type has pathmap, can anyone help me out to sort that
issue
or any example in whihc UML model is generated from some other model.

Can anyone have the idea about that and can help.
Thank You.
Re: [ATL] How to Genenerate UML Model primitivetype pathmap from Other Model [message #108646 is a reply to message #108530] Fri, 24 July 2009 03:20 Go to previous message
Eclipse UserFriend
Hello again,

Has someone any idea?

Thanks for any answer.
Previous Topic:Gauging Interest: EMF M2M Transformations in Scala?
Next Topic:MetaModels in specific XMI format
Goto Forum:
  


Current Time: Mon Jul 07 08:19:18 EDT 2025

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

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

Back to the top