Sparx Systems Forum
Enterprise Architect => General Board => Topic started by: elr on July 26, 2024, 05:40:15 am
-
Hello All,
I set up a Generalization chain of classes (AuditDoc->Doc->Deliverable->Element). Some have tagged value definitions.
All these tagged values are downward propagated. Cool !
Moreover, attributes have been defined for AuditDoc
I then defined AuditDoc as a stereotype and extended it from Artifact metaclass in order to make a Profile Docs XML file.
The goal of course is to be able, later on,to instanciate several AuditDoc objects without having to recreate all these TV and attributes; just define their values.
I didn't forget to include all super classes to my profile file.
In a sample projet, I can see that attributes become TV in a dedicated panel (why not ?) but no tagged values appears..
Does somebody has the full recipe ?
Thank you
Eric
-
A stereotype's attributes become tagged values when that stereotype is instantiated.
A stereotype's tagged values do not map to anything when the stereotype is instantiated.
-
Thx Eve,
So, does it means that propagating TVs through an inheritance chain is useless when we plan to set up a profile to easily instanciate classes?
Eric
-
Make AuditDoc, Doc, Deliverable, and Element stereotypes.
Convert their tagged values into attributes.
Now when you create an AuditDoc it will have a tagged value for each tagged value.
If you don't want any of those stereotypes to be createable, set them to abstract.
-
I see. No need for inheritance, thus..
Thank you !
Eric