Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » UML2 » extending a stereotype(creating a stereotype with proerties from other stereotype)
extending a stereotype [message #482051] Tue, 25 August 2009 09:21 Go to next message
robert vrooland is currently offline robert vroolandFriend
Messages: 8
Registered: July 2009
Junior Member
I have a profile with a few stereotypes. Now i want to add a few more new stereotypes that are extensions from the older ones.

Ill detail my problem with an example:

Say I have stereotype A with a few basic restrictions. The problem that i want to add 2 more stereotypes B and C. Both these new types must have the basic restictions from A and then their own rules added on top of that.

Is this possible?

Robert.

Re: extending a stereotype [message #482409 is a reply to message #482051] Wed, 26 August 2009 13:11 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Robert,

You can have one stereotype inherit from another (generalization between
stereotypes). The more specialized stereotype will inherit attributes from
the more general. OCL constraints would also apply although OCL
expressions on stereotypes are sometimes written using the "base_" property
as a context indicating the type to which the stereotype is applied (you may
have to watch out for that).

Regards,
- James.

"robert vrooland" <vrooland@hotmail.com> wrote in message
news:h70aek$kne$1@build.eclipse.org...
>I have a profile with a few stereotypes. Now i want to add a few more new
>stereotypes that are extensions from the older ones.
>
> Ill detail my problem with an example:
>
> Say I have stereotype A with a few basic restrictions. The problem that i
> want to add 2 more stereotypes B and C. Both these new types must have the
> basic restictions from A and then their own rules added on top of that.
> Is this possible?
>
> Robert.
>
>
Re: extending a stereotype [message #627899 is a reply to message #482051] Wed, 26 August 2009 13:11 Go to previous message
james bruck is currently offline james bruckFriend
Messages: 1724
Registered: July 2009
Senior Member
Hi Robert,

You can have one stereotype inherit from another (generalization between
stereotypes). The more specialized stereotype will inherit attributes from
the more general. OCL constraints would also apply although OCL
expressions on stereotypes are sometimes written using the "base_" property
as a context indicating the type to which the stereotype is applied (you may
have to watch out for that).

Regards,
- James.

"robert vrooland" <vrooland@hotmail.com> wrote in message
news:h70aek$kne$1@build.eclipse.org...
>I have a profile with a few stereotypes. Now i want to add a few more new
>stereotypes that are extensions from the older ones.
>
> Ill detail my problem with an example:
>
> Say I have stereotype A with a few basic restrictions. The problem that i
> want to add 2 more stereotypes B and C. Both these new types must have the
> basic restictions from A and then their own rules added on top of that.
> Is this possible?
>
> Robert.
>
>
Previous Topic:Changing an applied profile
Next Topic:Linking Transformation Configurations in RSA
Goto Forum:
  


Current Time: Sat Apr 20 01:43:28 GMT 2024

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

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

Back to the top