[ATL] How to Genenerate UML Model primitivetype pathmap from Other Model [message #108530] |
Wed, 22 July 2009 05:31  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.26342 seconds