[Xtend] Model modification of a UML model using a profile [message #649047] |
Mon, 17 January 2011 12:28 |
Muba Messages: 20 Registered: November 2009 |
Junior Member |
|
|
Hi,
I am trying to modify an uml model with xTend, but find it hard to do so.
A uml to ecore transformation works great, but now need a uml to uml transformation and I cannot really do much.
This is the situation:
I have created a UML Model with Topcased. This UML Model is using a custom UML Profile.
All I managed so far is to add a new uml::Class to my model.
But the resulting model lost all applied stereotypes. Which means I got my new class, but all other classes lost their stereotypes.
But the profile is still referenced in the model.
What would be one problem.
The other Problem is that I cannot do much else. For example I cannot figure out how to add a new attribute to the new class.
Because I cant figure out how to provide a uml::Type instead of an xpand2::Type.
createOwnedAttribute(String, Type, Integer, Integer)
Does Xtend even has the capabitilies I need?
Namely:
- UML modificiation / UML-to-UML transformation
- Keeping the applied stereotypes / applying stereotypes
If not can the other m2m languages do it? ATL for example?
Best regards,
Muba
EDIT: Oh, I was going to post it in the M2M forum and not the M2T one, could an admin move the topic please?.
[Updated on: Mon, 17 January 2011 12:31] Report message to a moderator
|
|
|
|
Re: [Xtend] Model modification of a UML model using a profile [message #649139 is a reply to message #649130] |
Mon, 17 January 2011 21:35 |
|
Hi,
this may help
<workflow>
<bean class="org.eclipse.xtend.typesystem.uml2.Setup" standardUML2Setup="true" />
<bean class="org.eclipse.emf.mwe.utils.StandaloneSetup" platformUri=".." />
<component class="org.eclipse.xtend.typesystem.emf.XmiReader">
<modelFile value="src/model/test.uml" />
<outputSlot value="model" />
</component>
....
<component class="org.eclipse.xtend.typesystem.uml2.UML2Writer">
<outPath value="xxxx" />
<inputSlot value="model" />
</component>
</workflow>
~Christian
Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04279 seconds