[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.modeling.mdt.uml2] Re: extending a stereotype
|
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@xxxxxxxxxxx> wrote in message
news:h70aek$kne$1@xxxxxxxxxxxxxxxxxxxx
>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.
>
>