Please note : This help page is not for the latest version of Enterprise Architect. The latest help can be found here.

Supported Attributes

Supported Stereotype Attributes:

The following attributes can be applied to stereotypes in UML Profiles:

Attribute

Meaning

See also

icon

Contains the path to a bitmap file to be used as the Project Browser icon for all elements other than Package, with the given stereotype.

The bitmap must be 16x16 pixels.

For a transparent background, use light grey - RGB(192,192,192).

For this attribute to work correctly, the _metatype attribute must also be used (see below).

 

 

_image

Shape script definition.

 

 

_instanceMode

 

 

Used for defining behavior on creating an instance.

 
Defining Behavior on Creating an Instance

_instanceOwner

 

_instanceType

 

_metatype

Used for defining stereotypes as metatypes.

Define a Stereotype as a Metatype

 

_sizeY

Initial height of the element, in pixels at 100% zoom.

 

 

_sizeX

Initial width of the element, in pixels at 100% zoom.

 

 

_strictness

Used for restricting application of multiple stereotypes.

Restricting Application of Multiple Stereotypes

 

Supported Metaclass Attributes:

The following attributes can be applied to metaclass Classes in UML Profiles, and refer to the stereotypes that extend them:

Attribute

Meaning

See also

_AttInh

If set to 1, switches on the Inherited Features: Show Attributes setting.

 

 

_AttPkg

If set to 1, switches on the Attribute Visibility: Package setting.

 

 

_AttPri

If set to 1, switches on the Attribute Visibility: Private setting.

 

 

_AttPro

If set to 1, switches on the Attribute Visibility: Protected setting.

 

 

_AttPub

If set to 1, switches on the Attribute Visibility: Public setting.

 

 

_ConInh

If set to 1, switches on the Show Element Compartments: Inherited Constraints setting.

 

 

_Constraint

If set to 1, switches on the Show Element Compartments: Constraints setting.

 

 

_defaultDiagramType

Used for defining child diagram types.

 

Define Child Diagram Types

_HideStype

If set to a comma-separated list of stereotypes, sets the Hide Stereotyped Features filter.

 

 

_isVertical

If set to True for an ActivityPartition stereotype, creates a vertical ActivityPartition by default.

 

 

_lineStyle

Sets the line style of a connector; the value of the attribute can be one of:

direct
auto
custom
bezier
treeH (horizontal)
treeV (vertical)
treeLH (lateral horizontal)
treeLV (lateral vertical)
orthogonalS (orthogonal, square corners)
orthogonalR (orthogonal, rounded corners)
 

 

_makeComposite

Used for creating composite elements.

 

Create Composite Elements

_OpInh

If set to 1, switches on the Inherited Features: Show Operations setting.

 

 

_OpPkg

If set to 1, switches on the Operation Visibility: Package setting.

 

 

_OpPri

If set to 1, switches on the Operation Visibility: Private setting.

 

 

_OpPro

If set to 1, switches on the Operation Visibility: Protected setting.

 

 

_OpPub

If set to 1, switches on the Operation Visibility: Public setting.

 

 

_PType

If set to 1, switches on the Show element type (Port or Part only) setting.

 

 

_ResInh

If set to 1, switches on the Show Element Compartments: Inherited Responsibilities setting.

 

 

_Responsibility

If set to 1, switches on the Show Element Compartments: Responsibilities setting.

 

 

_Runstate

If set to 1, switches on the Hide Object Runstate in current diagram setting.

 

 

_SourceAggregation

Used to set the aggregation type at the end of a connector; do not set both _SourceAggregation and _TargetAggregation.

Set to 1 for shared, 2 for composite.

 

 

_SourceMultiplicity

Used to set the multiplicity of the source element, such as 1..* or 0..1.

 

 

_SourceNavigability

If the connector is non-navigable, set this attribute to Non-Navigable; for other values, set the Direction attribute.

 

Connector Class

_SubtypeProperty

Used to specify the fully qualified name of a Tagged Value that acts as a subtype for the element, and that must be set when created.

This Tagged Value must be created on the stereotype using an Association to an Enumeration element.

 

 

_Tag

If set to 1, switches on the Show Element Compartments: Tags setting.

 

 

_tagGroupings

Maps the Tagged Values into the _TagGroups (below) displayed in the Tagged Values window, in the form:

tagName1=groupName1;tagName2=groupName2;
 

 

_tagGroups

A comma-separated list of required groups in the order in which they are to be displayed in the Tagged Values window

groupName1,groupName2

 

 

_tagGroupStates

Maps _tagGroups displayed in the Tagged Values window to the state of open or closed, in the form:

groupName1=open;groupName2=closed;

 

 

_TagInh

If set to 1, switches on the Show Element Compartments: Inherited Tags setting.

 

 

_TargetAggregation

Used to set the aggregation type at the end of a connector; do not set both _SourceAggregation and _TargetAggregation.

Set to 1 for shared, 2 for composite.

 

 

_TargetMultiplicity

Used to set the multiplicity of the target element, such as 1..* or 0..1.

 

 

_TargetNavigability

If the connector is non-navigable, set this attribute to Non-Navigable; for other values, set the Direction attribute.

 

Connector Class