Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 09:31 Go to next message
Edvinas is currently offline EdvinasFriend
Messages: 2
Registered: July 2009
Junior Member
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 07:20 Go to previous message
Edvinas is currently offline EdvinasFriend
Messages: 2
Registered: July 2009
Junior Member
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: Fri Apr 26 22:27:13 GMT 2024

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

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

Back to the top