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

The 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, which appears in the Stereotype drop list for elements that match the AppliesTo attribute.

 

ObjectType

ObjectType

Read only

Distinguishes objects referenced through a Dispatch interface.

 

StereotypeGUID

String

Read/Write

A unique identifier for stereotype, generally set and maintained by Enterprise Architect.

 

Style

String

Read/Write

An additional style specifier for the 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

Updates the current stereotype object after modification or appending a new item.

If false is returned, check the GetLastError function for more information.