[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.modeling.mdt.uml2] Re: seperating stereotypes in profiles

How about this.

You could have two profiles. One is MVC Profile another is MVP Profile, The MVC profile contains Model, View and Controller Stereotypes. The MVP Profile imports the MVC Profile and adds the extra Presenter Stereotpe.

When creating an MVC model you only apply the MVC Profile. When creating an MVP Model you apply the MVP profile.


"robert vrooland" <vrooland@xxxxxxxxxxx> wrote in message news:d4583fd181ac578fbc8c52bbe25f81e2$1@xxxxxxxxxxxxxxxxxx
Hi Tas,

Yes that would probably work Tas. But the problem with limiting the stereotypes a model may use was the main thing.

Say I have a model for MVC (model view control) and MVP (presenter variant). the profile(s) applied to the models would need model, view, control and presenter stereotypes.

If I want to make a MVC model, how can I add a limit to the profile so that the presenter stereotype is not available.

Ill have a look in the prosibilities of ocl queries. Seee what can be done.

Robert.