Supported Attributes

Supported Stereotype Attributes in UML Profiles

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

Attribute

Meaning

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.

_instanceOwner

_instanceType

_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).

_metatype

Used for defining stereotypes as metatypes.

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

Supported Metatype Attributes in UML Profiles

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

Attribute

Meaning

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

_HideStype

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

_MakeComposite

Used for creating 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 and 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.

_Tag

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

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