Book a Demo

Author Topic: Properties for new stereotypes  (Read 3119 times)

vprog

  • EA Novice
  • *
  • Posts: 4
  • Karma: +0/-0
  • stored procs rule
    • View Profile
Properties for new stereotypes
« on: October 29, 2003, 12:15:30 pm »
Is there any facility for specifying new properties for a new stereotype?

I'd like to be able to have some way to say that if a class is a certain stereotype, than some properties should be specified that are not part of the standard set of properties for a class.

Sean Kearon

  • EA User
  • **
  • Posts: 126
  • Karma: +0/-0
    • View Profile
Re: Properties for new stereotypes
« Reply #1 on: October 30, 2003, 01:36:12 am »
Stereotypes are an extension mechanism in UML, allowing you to mark an element according to your needs.  Although there are some seterotypes that change the appearance of an element (such as adding the <<interface>> stereotype to a class), they do not generally work that way.

If I understand you right, adding an interface to a class is probably what you are after.  This allows you to say that the class 'implements' the attached interface(s) and implies that it will also contain the attributes and operations (i.e. properties and methods) of the interface as well as those it declares itself.  I presume that using inheritance is not appropriate for your needs.  

Regards

Sean

Tjerk

  • EA User
  • **
  • Posts: 231
  • Karma: +1/-0
    • View Profile
Re: Properties for new stereotypes
« Reply #2 on: October 30, 2003, 02:45:12 am »
Hi VProg,

You might also want to scan the manuals for Profiles. Profiles enable you to add stereotypes, images, tagged values and constraints to UML elements.

An example can be found on this site, look for the XSD profile.

Greetz,
Tjerk