Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » Handle stereotypes as inheritance?
Handle stereotypes as inheritance? [message #475908] Mon, 17 September 2007 12:58 Go to next message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

hi modeling-friends,

I have a -pretty common- use case:
I have to use the standard UML2 profile mechanism to tag metamodel
elements with a special semantic. My work would be eased a lot if I
could treat the stereotyped classes as child-classes of the UML class,
in terms of inheritance. Afaik this is in principle what the extension
mechanism describes and e.g. open Architecture Ware already has a plugin
which does this for code generation automatically. So I wondered if
something similar exists for EMF/UML2 ?

- -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG7nnnIYVWjMSpDwwRAi/uAJwNEHL3fJmrptP+2kPp1f51+81PSQCf bwuU
ejWTWHRgnO5bsexyPjGNQfE=
=TJ7U
-----END PGP SIGNATURE-----
Re: Handle stereotypes as inheritance? [message #475925 is a reply to message #475908] Tue, 18 September 2007 17:58 Go to previous messageGo to next message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
If the extensions created via Stereotype::createExtension(), are not good
enough for your purposes, it is possible (but not recommended) to directly
extend the UML metamodel and thereby create specializations of metaclasses
via inheritance. I'm not familiar with the product you mention.

- James.

"SKuhn" <kuhn@oio.de> wrote in message
news:fcltlv$7qo$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi modeling-friends,
>
> I have a -pretty common- use case:
> I have to use the standard UML2 profile mechanism to tag metamodel
> elements with a special semantic. My work would be eased a lot if I
> could treat the stereotyped classes as child-classes of the UML class,
> in terms of inheritance. Afaik this is in principle what the extension
> mechanism describes and e.g. open Architecture Ware already has a plugin
> which does this for code generation automatically. So I wondered if
> something similar exists for EMF/UML2 ?
>
> - -stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG7nnnIYVWjMSpDwwRAi/uAJwNEHL3fJmrptP+2kPp1f51+81PSQCf bwuU
> ejWTWHRgnO5bsexyPjGNQfE=
> =TJ7U
> -----END PGP SIGNATURE-----
Re: Handle stereotypes as inheritance? [message #475926 is a reply to message #475925] Tue, 18 September 2007 20:08 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> it is possible (but not recommended) to directly
> extend the UML metamodel and thereby create specializations of metaclasses
> via inheritance.
this would be a Middleweight Extension and create an UML dialect which
is not compatible with other UML tools. But I could imagine making these
new Metaclasses virtual, or in other words making them decorate the
class the sterotype is applied. I hope I described this understandable :)

- -stefan


James Bruck schrieb:
> If the extensions created via Stereotype::createExtension(), are not good
> enough for your purposes, it is possible (but not recommended) to directly
> extend the UML metamodel and thereby create specializations of metaclasses
> via inheritance. I'm not familiar with the product you mention.
>
> - James.
>
> "SKuhn" <kuhn@oio.de> wrote in message
> news:fcltlv$7qo$1@build.eclipse.org...
> hi modeling-friends,
>
> I have a -pretty common- use case:
> I have to use the standard UML2 profile mechanism to tag metamodel
> elements with a special semantic. My work would be eased a lot if I
> could treat the stereotyped classes as child-classes of the UML class,
> in terms of inheritance. Afaik this is in principle what the extension
> mechanism describes and e.g. open Architecture Ware already has a plugin
> which does this for code generation automatically. So I wondered if
> something similar exists for EMF/UML2 ?
>
> -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8DBLIYVWjMSpDwwRAiJgAKDVTpp3Jgh+y/tyNywMuBfApSDavgCd Grl6
uAcNNnp9naWsX6d+LA91ZbM=
=tQMu
-----END PGP SIGNATURE-----
Re: Handle stereotypes as inheritance? [message #624818 is a reply to message #475908] Tue, 18 September 2007 17:58 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
If the extensions created via Stereotype::createExtension(), are not good
enough for your purposes, it is possible (but not recommended) to directly
extend the UML metamodel and thereby create specializations of metaclasses
via inheritance. I'm not familiar with the product you mention.

- James.

"SKuhn" <kuhn@oio.de> wrote in message
news:fcltlv$7qo$1@build.eclipse.org...
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> hi modeling-friends,
>
> I have a -pretty common- use case:
> I have to use the standard UML2 profile mechanism to tag metamodel
> elements with a special semantic. My work would be eased a lot if I
> could treat the stereotyped classes as child-classes of the UML class,
> in terms of inheritance. Afaik this is in principle what the extension
> mechanism describes and e.g. open Architecture Ware already has a plugin
> which does this for code generation automatically. So I wondered if
> something similar exists for EMF/UML2 ?
>
> - -stefan
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v2.0.7 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFG7nnnIYVWjMSpDwwRAi/uAJwNEHL3fJmrptP+2kPp1f51+81PSQCf bwuU
> ejWTWHRgnO5bsexyPjGNQfE=
> =TJ7U
> -----END PGP SIGNATURE-----
Re: Handle stereotypes as inheritance? [message #624819 is a reply to message #475925] Tue, 18 September 2007 20:08 Go to previous message
Stefan Kuhn is currently offline Stefan KuhnFriend
Messages: 355
Registered: July 2009
Senior Member
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> it is possible (but not recommended) to directly
> extend the UML metamodel and thereby create specializations of metaclasses
> via inheritance.
this would be a Middleweight Extension and create an UML dialect which
is not compatible with other UML tools. But I could imagine making these
new Metaclasses virtual, or in other words making them decorate the
class the sterotype is applied. I hope I described this understandable :)

- -stefan


James Bruck schrieb:
> If the extensions created via Stereotype::createExtension(), are not good
> enough for your purposes, it is possible (but not recommended) to directly
> extend the UML metamodel and thereby create specializations of metaclasses
> via inheritance. I'm not familiar with the product you mention.
>
> - James.
>
> "SKuhn" <kuhn@oio.de> wrote in message
> news:fcltlv$7qo$1@build.eclipse.org...
> hi modeling-friends,
>
> I have a -pretty common- use case:
> I have to use the standard UML2 profile mechanism to tag metamodel
> elements with a special semantic. My work would be eased a lot if I
> could treat the stereotyped classes as child-classes of the UML class,
> in terms of inheritance. Afaik this is in principle what the extension
> mechanism describes and e.g. open Architecture Ware already has a plugin
> which does this for code generation automatically. So I wondered if
> something similar exists for EMF/UML2 ?
>
> -stefan
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.7 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFG8DBLIYVWjMSpDwwRAiJgAKDVTpp3Jgh+y/tyNywMuBfApSDavgCd Grl6
uAcNNnp9naWsX6d+LA91ZbM=
=tQMu
-----END PGP SIGNATURE-----
Previous Topic:how to get stereotyped-property's value
Next Topic:problem with the persistence of the applied stereo type.
Goto Forum:
  


Current Time: Fri Apr 19 03:10:12 GMT 2024

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

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

Back to the top