Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.
Stereotype Class
The Stereotype element corresponds to a UML stereotype, which is an extension mechanism for varying the behavior and type of a model element. Use the Repository Stereotypes collection to add new elements and delete existing ones.
Associated table in .EAP file: t_stereotypes
Stereotype Attributes
Attribute |
Type |
Notes |
---|---|---|
AppliesTo |
String |
Read/Write. A reference to the stereotype Base Class, that is, which element it applies to. |
MetafileLoadPath |
String |
Read/Write. Path to an associated metafile. The automation interface does not yet support loading metafiles. To do this you must use the Stereotype tab of the UML Types dialog in Enterprise Architect. |
Notes |
String |
Read/Write. Notes about the stereotype. |
Name |
String |
Read/Write. The stereotype name. Appears in the Stereotype drop list for elements that match the AppliesTo attribute. |
ObjectType |
Read only. Distinguishes objects referenced through a Dispatch interface. |
|
StereotypeGUID |
String |
Read/Write. Unique identifier for stereotype, generally set and maintained by Enterprise Architect. |
Style |
String |
Read/Write. Additional style specifier for stereotype. |
VisualType |
String |
Read/Write. Indicates an inbuilt visual style associated with a stereotype. Not currently implemented. |
Stereotype Methods
Method |
Type |
Notes |
---|---|---|
GetLastError () |
String |
Returns a string value describing the most recent error that occurred in relation to this object. This function is rarely used as an exception is thrown when an error occurs. |
Update () |
Boolean |
Update the current stereotype object after modification or appending a new item. If false is returned, check the GetLastError function for more information. |