Skip to main content



      Home
Home » Archived » M2M (model-to-model transformation) » [ATL] problem with UML2.ecore file
[ATL] problem with UML2.ecore file [message #90678] Mon, 29 September 2008 09:19 Go to next message
Eclipse UserFriend
Originally posted by: jihed.touzi.enstimac.fr

Hi to all;
I'm working into a transformation that starts from a stereotyped UML2
model to genrate another DSL.
It works fine when in the metamodel field in the configuration panel i
specify it using NS URI: uri:http://www.eclipse.org/uml2/2.0.0/UML or
uri:http://www.eclipse.org/uml2/2.1.0/UML

The problem is when i use the physical UML2.ecore file of the same
version it doesn't works.

I obtain at first warnings like that:
ATTENTION: metamodel contains several classifiers with same name: EAttribute
ATTENTION: metamodel contains several classifiers with same name:
ecore::EAttribute
ATTENTION: metamodel contains several classifiers with same name:
EAnnotation
ATTENTION: metamodel contains several classifiers with same name:
ecore::EAnnotation
ATTENTION: metamodel contains several classifiers with same name: EClass
ATTENTION: metamodel contains several classifiers with same name:
ecore::EClass


and errors like that :

GRAVE: message: ERROR: could not find operation getAppliedStereotypes
on UML2!Class having supertypes: [UML2!BehavioredClassifier,
UML2!EncapsulatedClassifier, OclType, OclAny] (including Java operations)
and

GRAVE: message: ERROR: could not find operation not on Sequence(OclAny)
having supertypes: [Collection(OclAny)]

Normally the UML2 file and the NsURI option have to do the same
tranformation.

Some one can help me ??
Thank you much.

Jihed.
Re: [ATL] problem with UML2.ecore file [message #90788 is a reply to message #90678] Tue, 30 September 2008 11:15 Go to previous message
Eclipse UserFriend
This is a multi-part message in MIME format.
--------------040502020501040308030202
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 8bit

Hi Jihed,

It seems your transformation uses metamodel operations. Operations are
implemented in "UML2 EMF generated code". So you could not use these
operations by loading UML2 in dynamic way (only with UML2.ecore). It's
better to use UML2 NSUri in your case.

Regards,
Freddy.


jihed touzi a
Previous Topic:[ATL] retrieve index of an element in a collection
Next Topic:MARTE in km3
Goto Forum:
  


Current Time: Mon Sep 15 21:03:18 EDT 2025

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

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

Back to the top