Book a Demo

Author Topic: Metaconstraints on Attribute stereotypes?  (Read 3280 times)

Geert Bellekens

  • EA Guru
  • *****
  • Posts: 13523
  • Karma: +574/-33
  • Make EA work for YOU!
    • View Profile
    • Enterprise Architect Consultant and Value Added Reseller
Metaconstraints on Attribute stereotypes?
« on: June 12, 2020, 06:03:34 pm »
Hi,

I'm doing a profile where I have a stereotype extending Attribute.
Now a was looking at the meta-constraint hoping to constraint the allowed type and owner for this stereotype.

I did the following
https://imgur.com/vcyyF2D


But neither one of these meta-constraints seem to do anything. I can add «SAP_alternativeKey» attributes to any type of element, and I can set any classifier as the type of my attribute, not only Classes.
Did I miss something?
Was I expecting too much?
What is the point of "umlrole=type" if not for attributes?

Geert

Eve

  • EA Administrator
  • EA Guru
  • *****
  • Posts: 8110
  • Karma: +119/-20
    • View Profile
Re: Metaconstraints on Attribute stereotypes?
« Reply #1 on: June 15, 2020, 09:57:40 am »
What is the point of "umlrole=type" if not for attributes?
It was originally used for a systems engineering language. ie. Preferring parts over attributes.

I would go as far as saying it should be extended to attributes.