Skip to main content



      Home
Home » Modeling » EMF » Stereotype in ecore model
Stereotype in ecore model [message #1858925] Mon, 01 May 2023 19:51 Go to next message
Eclipse UserFriend
Hi,
I am new with EMF and core modeling, I created an ecore model and I want to add a stereotype to be applying for some eclass in the core metamodel. I did a lot of research but I didn't know how to do it . Can someone help me?
Thanks.
Re: Stereotype in ecore model [message #1858926 is a reply to message #1858925] Tue, 02 May 2023 00:55 Go to previous messageGo to next message
Eclipse UserFriend
Hi

Stereotype is a UML concept. Ecore does not support Stereotypes, although if I recall correctly there was an added-value project that supported EProfile and EStereotype. Sadly I forget the name of that now defunct project and Googling does not help me (a lot of Eclipse documentation is invisible to Google).

Since you are new to EMF, I suggest you learn to exploit EMF's many good facilities before you try to contort it into UML. Alternatively the UML2 project provides the facilities of UML and Java code generation via a UML2Ecore conversion.

(I tend to subscripe to the school of thought that UML Profiles and Stereotypes are an invention of the devil that discourages development of proper metamodels. If you are a primary metamodel developer, you should have the flexibility to design the metamodel right in the first place. If you are stuck trying to make an unsuitable third party metamodel suitable you need to be more imaginative. In addition to modeling approaches using layered models or roles, using Ecore you may use an EAnnotation to colour a metamodel at compile time or an eAdapter to decorate at run-time. If you just need to mark up to distinguish members of a Product line you may find a GenAnnotation in your product specific genmodel fits the bill.)

Regards

Ed Willink

[Updated on: Tue, 02 May 2023 03:02] by Moderator

Re: Stereotype in ecore model [message #1859438 is a reply to message #1858926] Wed, 07 June 2023 17:16 Go to previous message
Eclipse UserFriend
Thank you so much
Previous Topic:EMF build to maven central issue ?
Next Topic:CDO Migrated to GitHub
Goto Forum:
  


Current Time: Mon Mar 10 21:43:21 EDT 2025

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

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

Back to the top