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

Description

See also

AppliesTo

String

Notes: Read/Write

A reference to the stereotype Base Class; that is, which element it applies to.

MetafileLoadPath

String

Notes: 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

Notes: Read/Write.

Notes about the stereotype.

Name

String

Notes: Read/Write

The stereotype name, which appears in the Stereotype drop list for elements that match the AppliesTo attribute.

ObjectType

ObjectType

Notes: Read only

Distinguishes objects referenced through a Dispatch interface.

StereotypeGUID

String

Notes: Read/Write

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

Style

String

Notes: Read/Write

An additional style specifier for the stereotype.

VisualType

String

Notes: Read/Write

Indicates an inbuilt visual style associated with a stereotype.

Not currently implemented.

Stereotype Methods

Method

Description

See also

GetLastError()

String

Notes: Returns a string value describing the most recent error that occurred in relation to this object.

Update()

Boolean

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

If False is returned, check the 'GetLastError()' function for more information.