Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [ATL][UML] set stereotyped tagged value
[ATL][UML] set stereotyped tagged value [message #83606] Tue, 03 June 2008 15:18
Ivano is currently offline IvanoFriend
Messages: 35
Registered: July 2009
Member
Hi all,
I have a strange problem while developing an ATL transformation using UML2.

This is a simplified version of a rule:

rule port_SAport2 {
from
s_9 : saveccm!Port
to
t_15 : UML2!Port (
name <- s_9.name,
)
t_16 : UML2!Component()
do {
t_15.applyStereotype(thisModule.SAportStereotype);
t_16.applyStereotype(thisModule.SAtypeStereotype);
t_15.setValue(thisModule.SAportStereotype, 'type', t_16);
}
}

So, my rule produces a stereotyped UML Port and I want to set
the value of the 'type' tagged value with t_16.

I tested the helpers and they work, the problem is that if I declare
the type of the 'SAPort' tagged value as a uml:Component everything works,
but if I declare it as a SAtype (that is another stereotype) I get an
exception (listed at the end of this message).

It seems as it does recognize only standard UML elements, and not the
Stereotypes...

I am sure that someone manages to set tagged values with stereotypes,
I hope you will help me!

Ivano

this is the Exception:

GRAVE: ****** BEGIN Stack Trace
GRAVE: message: ERROR: exception during invocation of operation
applyStereotype on UML2!Component (java method: public
org.eclipse.emf.ecore.EObject
org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereoty pe(org.eclipse.uml2.uml.Stereotype))
GRAVE: exception:
GRAVE: org.eclipse.uml2.uml.internal.impl.StereotypeImpl@f701e2 (name:
SAtype, visibility: <unset>) (isLeaf: false, visibility: public,
isAbstract: false) (isActive: false, isAbstract: false)
java.lang.IllegalArgumentException:
org.eclipse.uml2.uml.internal.impl.StereotypeImpl@f701e2 (name: SAtype,
visibility: <unset>) (isLeaf: false, visibility: public, isAbstract:
false) (isActive: false, isAbstract: false)
at
org.eclipse.uml2.uml.internal.operations.ElementOperations.a pplyStereotype(ElementOperations.java:1410)
at
org.eclipse.uml2.uml.internal.impl.ElementImpl.applyStereoty pe(ElementImpl.java:501)
at sun.reflect.GeneratedMethodAccessor44.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
org.eclipse.m2m.atl.drivers.uml24atl.ASMUMLModelElement.real Invoke(ASMUMLModelElement.java:614)
at
org.eclipse.m2m.atl.drivers.uml24atl.ASMUMLModel.applyDelaye dInvocations(ASMUMLModel.java:552)
at
org.eclipse.m2m.atl.drivers.uml24atl.AtlUML2ModelHandler.sav eModel(AtlUML2ModelHandler.java:49)
at
org.eclipse.m2m.atl.drivers.uml24atl.AtlUML2ModelHandler.sav eModel(AtlUML2ModelHandler.java:37)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:362)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.runAtlLaunche r(AtlRegularVM.java:453)
at
org.eclipse.m2m.atl.adt.launching.AtlRegularVM.launch(AtlReg ularVM.java:425)
at
org.eclipse.m2m.atl.adt.launching.AtlLaunchConfigurationDele gate.launch(AtlLaunchConfigurationDelegate.java:35)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:766)
at
org.eclipse.debug.internal.core.LaunchConfiguration.launch(L aunchConfiguration.java:608)
at
org.eclipse.debug.internal.ui.DebugUIPlugin.buildAndLaunch(D ebugUIPlugin.java:899)
at
org.eclipse.debug.internal.ui.DebugUIPlugin$7.run(DebugUIPlu gin.java:1102)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
GRAVE: ****** END Stack Trace
INFO: Execution terminated due to error (see launch configuration to
allow continuation after errors).
Previous Topic:[ATL] How to output custom structured xmi file.
Next Topic:[QVT] qvt lanuch config: transformation IN parameter: invalid source
Goto Forum:
  


Current Time: Fri Apr 19 08:38:25 GMT 2024

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

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

Back to the top