Book a Demo

Author Topic: How to display an interface stereotype  (Read 5366 times)

micdev42

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
How to display an interface stereotype
« on: December 04, 2007, 04:29:12 am »
I'm drawing a UML component diagram and I have a component that exposes an interface. By editing the "other properties" of the interface I can define a stereotype of "web service". That's fine, but I can't display it on the diagram. Any ideas?

Other observations:
There is also something called "Advanced -> base interface properties". How is this supposed to be used?

Stereotypes seem to be handled very inconsistently in EA:

There are no interface stereotypes available in the standard settings > UML > Stereotypes tab; they seem to be handled differently from other stereotypes

Changing the name of a stereotype doesn't update it on any diagrams

If there's a best practice doc, please send me a link.
Thanks
Michael

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: How to display an interface stereotype
« Reply #1 on: December 04, 2007, 05:14:25 am »
Hi Michael,
Yes, I too found that the stereotypes are handled a little inconsistently. some are applied just like labels, but others affect the way the class is handled. For example setting 'enumeration' causes the parameters to be defaulted to public - shame the same doesn't happen for 'struct'.

Not sure what the problem is with not showing the stereotype? Double click an empty portion of your diagram, select 'elements' and check the "show element stereotypes" setting. This is defaulted to on, but it may be that you have it turned off? (I'm referring to version 7 build 818).

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to display an interface stereotype
« Reply #2 on: December 04, 2007, 05:30:58 am »
There's sort of a hierarchy of stereotypes in (much of but not all) EA functions. Search some of my posts over the past few months for some of the history of this.

Sadly, that won't solve your problem. Still, it might give you enough background to know where a workaround is required.

David
No, you can't have it!

micdev42

  • EA Novice
  • *
  • Posts: 13
  • Karma: +0/-0
    • View Profile
Re: How to display an interface stereotype
« Reply #3 on: December 04, 2007, 08:04:40 am »
>>>
Double click an empty portion of your diagram, select 'elements' and check the "show element stereotypes" setting.
<<<
Thanks for the tip, but this is already set.
To clarify, the issue is that the stereotype on the provided interface is not shown: other element stereotypes are shown correctly.
I think it's down to the fact that 'provided interfaces' are not modelled as first class constructs within EA and so are treated inconsistently compared to say components, nodes etc.
The same applies to stereotypes themselves.

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: How to display an interface stereotype
« Reply #4 on: December 04, 2007, 04:44:23 pm »
Hi Michael,
Sorry, you've lost me. I just realised you're probably talking about changing the stereo type of an interface rather than the interface stereo type of a class. However, again this seems to work fine. I can change the stereo type and it appears as expected in the diagrams. I cannot see the menu's you mention, so it may be the way they are uniquely dealing with your request.
Can you be more specific with the menus - i.e. main menu or context menu and which element and diagram are you dealing with at the time.

«Midnight»

  • EA Guru
  • *****
  • Posts: 5651
  • Karma: +0/-0
  • That nice Mister Grey
    • View Profile
Re: How to display an interface stereotype
« Reply #5 on: December 04, 2007, 05:19:55 pm »
With a diagram open press F5 (or double click) and you should get a diagram properties dialog. You will see several tabs at the top; click the Elements tab.
No, you can't have it!

gpc

  • EA User
  • **
  • Posts: 111
  • Karma: +0/-0
    • View Profile
Re: How to display an interface stereotype
« Reply #6 on: December 04, 2007, 06:13:19 pm »
thanks midnight but I think he has that covered.
My question was in regard to the menu....

"Advanced -> base interface properties"

(I figured out the MainMenu->Settings->UML one :))


RoyC

  • EA Administrator
  • EA Practitioner
  • *****
  • Posts: 1297
  • Karma: +21/-4
  • Read The Help!
    • View Profile
Re: How to display an interface stereotype
« Reply #7 on: December 04, 2007, 08:18:19 pm »
Just to identify the Properties dialogs for this Expose Interface element:

Right-click on the exposed interface, and on the context menu select the Advanced | Base Interface Properties option. This displays the Properties dialog for the Interface element that the Expose Interface element exposes.

The right-click Properties option displays the Properties dialog for the Expose Interface type - that is, here you define which interface is exposed, and whether it is a provided or required interface.

The Right-click Other Properties option displays the more conventional Properties dialog for the Expose Interface element
Best Regards, Roy