Stereotype

Return to Introduction  Previous page  Next page

public 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

Name

String

Read/Write. The stereotype name. Appears in the Stereotype drop list for elements that match the AppliesTo attribute.

AppliesTo

String

Read/Write. A reference to the stereotype Base Class, ie. which element it applies to.

Notes

String

Read/Write. Notes about the stereotype.

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.

Style

String

Read/Write.  Additional style specifier for stereotype.

StereotypeGUID

String

Read/Write. Unique identifier for stereotype, generally set and maintained by Enterprise Architect.

VisualType

String

Read/Write. Indicates an inbuilt visual style associated with a stereotype. Not currently implemented.

ObjectType

ObjectType

Read only. Distinguishes objects referenced through a Dispatch interface.

Stereotype Methods

Method

Type

Notes

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.

GetLastError () 

String

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

This function is rarely used since an exception is thrown when an error occurs.