Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » EMF » Extend Metadata Tutorial
Extend Metadata Tutorial [message #1475867] Sun, 16 November 2014 16:43 Go to next message
Hiroki Kondo is currently offline Hiroki KondoFriend
Messages: 47
Registered: July 2009
Member
Hi!

Is there any way to extend a defined metamodel like uml2 or bpmn2?
I'd like to add some structured features to thier metamodel.

I'm reading EMF Book 2nd, EMF has ExtendedMetaData.
Can I use this class for this purpose? If so, How can I do that?
Re: Extend Metadata Tutorial [message #1475880 is a reply to message #1475867] Sun, 16 November 2014 16:58 Go to previous messageGo to next message
Ed Willink is currently offline Ed WillinkFriend
Messages: 7655
Registered: July 2009
Senior Member
Hi

Extending, in the sense of adding additional classes to, the namespace
of a standard metamodel is a very very bad idea. You can use custom
transformations or UML package merge but don't. You will have endless
confusion for you and other users getting the wrong metamodel.

Extending, in the sense of defining an additional dependent metamodel
can be appropriate. You just define a referencing metamodel. See
org.eclipse.ocl.ecore/model/OCLEcore.ecore for a two level extension of
Ecore. But this can be a very bad idea for notionally independent
metamodels since you end up with a very tight coupling to what should be
an irrelevance. For self-stnading metamodels, define a self-standing
metamodel.

ExtendedMetaData is for a completely different purpose; enriching the
handling of defined classes, not creating new ones. But maybe you can
write wierd code that maps non-classes to classes.

UML of course has Stereotypes that can solve many problems.

Regards

Ed Willink


On 16/11/2014 16:43, Hiroki Kondo wrote:
> Hi!
>
> Is there any way to extend a defined metamodel like uml2 or bpmn2?
> I'd like to add some structured features to thier metamodel.
>
> I'm reading EMF Book 2nd, EMF has ExtendedMetaData.
> Can I use this class for this purpose? If so, How can I do that?
>
Re: Extend Metadata Tutorial [message #1478420 is a reply to message #1475880] Tue, 18 November 2014 17:17 Go to previous message
Hiroki Kondo is currently offline Hiroki KondoFriend
Messages: 47
Registered: July 2009
Member
Hi Ed Willink,

Thank you so much for your reply.

Regards,

HIroki
Previous Topic:[xcore] creating an instance of Map.Entry
Next Topic:ECore generated from XSD includes Type suffix in class names
Goto Forum:
  


Current Time: Thu Apr 25 23:02:32 GMT 2024

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

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

Back to the top