Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsExtend Metadata Tutorial
https://www.eclipse.org/forums/index.php/mv/msg/859305/1475867/#msg_1475867
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?
]]>Hiroki Kondo2014-11-16T16:43:50-00:00Re: Extend Metadata Tutorial
https://www.eclipse.org/forums/index.php/mv/msg/859305/1475880/#msg_1475880
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?
>]]>Ed Willink2014-11-16T16:58:46-00:00Re: Extend Metadata Tutorial
https://www.eclipse.org/forums/index.php/mv/msg/859305/1478420/#msg_1478420
Thank you so much for your reply.