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

Supported Attributes

Special stereotype attribute tags are tags that set the default behavior of stereotyped elements, such as the initial size of the element and the default location of any image files associated with the stereotype. A wide range of special attributes are available that can be applied to:

Stereotypes or
Metaclass Classes, referring to the stereotypes that extend them

Stereotype Attributes

Attribute

Meaning

See also

icon

Contains the bitmap file location of the 16x16-pixel icon displayed beside all elements (except Package) that have the given stereotype, in the Project Browser.

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

For this attribute to work correctly, also set the _metatype attribute (see below).

 

 

_image

The Shape Script definition.

 

 

_instanceMode

 

 

Define aspects of behavior on creating an instance.

 
Define Creation of Instance

_instanceOwner

 

_instanceType

 

_metatype

Defines stereotypes as metatypes.

Define a Stereotype as a Metatype

 

_sizeY

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

 

 

_sizeX

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

 

 

_strictness

Defines the degree to which multiple stereotypes can be applied to an element.

Define Multiple-Stereotype Level

 

Metaclass Attributes

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

Defines the 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, makes the default Activity Partition orientation  vertical.

 

 

_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

Makes the element a composite element.

 

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

Sets the aggregation type at the end of a connector; set one of _SourceAggregation or _TargetAggregation.

Set to 1 for shared, 2 for composite.

 

 

_SourceMultiplicity

Sets 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.

If other values are more appropriate, use the Direction attribute (in the Connector Class in the Automation Interface).

 

Connector Class

_subtypeProperty

Specifies the fully qualified name of the Tagged Value that is used to generate a popup submenu each time an element with the stereotype is created from the Toolbox.

The Tagged Value is an enumeration and the submenu consists of a command for each enumeration literal. The Tagged Value is initialized with whichever command is selected on the submenu; if none is selected (such as if the user clicks off the submenu) then the default value is used as normal.

For example, if you create a BPMN 2 Activity element, a submenu displays listing the task types such as BusinessRule, Manual and Receive. Selecting one of these values sets it as the value of the taskType Tagged Value.

The Tagged Value is effectively the Activity's subtype; in the BPMN 2 profile, in the format profile::stereotype::tag, the subtypeProperty for the Activity stereotype would be:

BPMN2.0::Activity::taskType.

 

 

_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. For example:

groupName1,groupName2,groupName3

 

 

_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

Sets the aggregation type at the end of a connector; set one of _SourceAggregation or _TargetAggregation.

Set to 1 for shared, 2 for composite.

 

 

_TargetMultiplicity

Sets 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.

If other values are more appropriate, use the Direction attribute (in the Connector Class in the Automation Interface).

 

Connector Class

Notes

Where an attribute is set to 1 to turn a feature on, setting it to 0 turns the feature off

Learn more