Redefine Attribute of Metaclass when extending Stereotypes

184 Views Asked by At

I have an issue, open question regarding extending stereotypes in Enterprise Architect.

Each attribute in my custom stereotype Z, which extends Metaclass A, has the property field Redefined Property. They way I understand it, I can choose to redefine an attribute of the extended Metaclass. Is this understanding correct?

What I tried:

  • Add attribute really_weird_attr_name in my metaclass A, as the attributes do not show up...
  • Add attribute 'much_better_attr_name' in my stereotype Z
  • Select A.really_weird_attr_name from the Redefined Property

When I export the profile with Spezialise-> Publish Tech -> Publish Diagram as UML Profile, there is no hint or whatsoever, that the property has been redefined:

[...]
                <TaggedValues>
                    <Tag name="much_better_attr_name" type="char" description="" unit="" values="" default=""/>
                </TaggedValues>
[...]

the above example, where Schema redefines Tablespace

1

There are 1 best solutions below

5
Geert Bellekens On

Your understanding is not correct.

Redefining properties is only possible if your stereotype redefines another stereotype, and you keep the exact same property name.

For more details see the EA manual on Redefine Stereotypes in another Profile

Also «table» is a special stereotype in EA that allows for some special behavior in the tool like being able to set things like not null, and PK. This behavior will not be triggered by the stereotype «snowflaketable».