Skip to main content
← UML

UML Profile Diagram Lab

UML / PROFILE / 01

Add domain information to the order model

See how stereotypes extend UML metaclasses, then see how a model package adopts the profile and supplies tag values.

«profile»ServiceModelingExtensionExtensionExtended metaclass Component. owner : String [0..1] · critical : Boolean [1]«stereotype»serviceowner : String [0..1]critical : Boolean [1]Extended metaclass Class. owner : String [0..1] · aggregate : Boolean [1]«stereotype»domainowner : String [0..1]aggregate : Boolean [1]«metaclass»Component«metaclass»Class
Scroll the diagram horizontally on narrow screens.

An Extension uses a solid line and a filled triangle pointing to the extended UML metaclass. Component specializes Class, so it also conforms to an Extension to Class. An attribute definition declares a name, type and multiplicity.

The case rule requires a nonblank String owner when critical is true.

Notation and semantics

The lab uses two metaclasses and two stereotypes and checks one application at a time. It checks tag types, multiplicity and the stated case rule. General OCL and profile import are outside this lab.

OMG · UML 2.5.1 §§11.8.6, 12.3 ↗
Blank area: ← → chapters · Native keys inside controls01 / 06
Preparing the model