Réserver une Démo
Pré. Proc.

EARules_StereotypeDisplayName

EARules_StereotypeDisplayName allows an Add-In registered to provide rules for a language to override the text displayed for the stereotype in the default notation. In standard UML notation, this is rendered between '«' and '»' near the name.

This event occurs during diagram drawing.

Syntax

Function EARules_StereotypeDisplayName (Repository As EA.Repository, Language As String, Stereotype as String, Base as Integer) As String

The EARules_StereotypeDisplayName function syntax contains these parameters.

Parameter

Description

See also

Repository

EA.Repository

Direction: IN

Description: An EA.Repository object representing the currently-open Enterprise Architect model. Poll its members to retrieve model data and user interface status information.

Repository Class

Language

String

Direction: IN

Description: Specifies the language for the rule that Enterprise Architect is requesting. This will match one of the values returned from EARules_Initialize.

EARules_Initialize

Stereotype

String

Direction: IN

Description: Specifies the fully qualified name of the stereotype being queried.

Base

Integer

Direction: OUT

Description: Controls whether the base rules will be called if you return an empty value. A non-zero value and return of an empty string means that the parent rules will determine the display of the stereotype.

Return Value

A string to override the displayed name of the stereotype on a diagram.