[
Date Prev][
Date Next][
Thread Prev][
Thread Next][
Date Index][
Thread Index]
[
List Home]
Re: [m2m-dev] [ATL] How to Genenerate UML Model primitivetype pathmap from Other Model
|
Hi Edvinas,
Note that this mailing list must only be used for ATL internal development issues.
Could you please re-ask your question onto the M2M newsgroup using the [ATL] prefix in the subject?
news://news.eclipse.org/eclipse.modeling.m2m
Best regards,
Hugo
2009/7/22 Edvinas Šinkevičius
<e.sinkevicius@xxxxxxxxxxx>
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#Integer"/>
<uml:PrimitiveType xmi:id="_KLe-onSAEd64neGfJpWtXQ" name="UnlimitedNatural"
href="">
/>
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.
|
|
_______________________________________________
m2m-dev mailing list
m2m-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/m2m-dev
--
-------------------------------------------------------------------------------
Hugo Bruneliere - R&D Engineer
AtlanMod Team (INRIA & EMN) - Room B206
École des Mines de Nantes
4, rue Alfred Kastler
44307 Nantes Cedex 3 - France
office. +33 (0)2 51 85 82 20
cell.+33 (0)6 07 42 45 30
EMail:
hugo.bruneliere@xxxxxxxx
-------------------------------------------------------------------------------