UML Profile Diagram Lab
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.
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 ↗Check the application to locate metaclass, value type or constraint errors.
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.
Check the application to locate metaclass, value type or constraint errors.
«service» · OrderThe dashed «apply» arrow goes from the model package to the profile. Then choose a stereotype for a compatible element and supply its tag values. Removing the profile removes the package’s stereotype applications and tags.
The case rule requires a nonblank String owner when critical is true.
Order in the class diagram
Order is a business class whose UML metaclass is Class. The «metaclass» Class in the profile definition determines what can receive the corresponding stereotype.
Open the Order class diagram ↗OrderService in the component diagram
The component diagram shows the boundary and interfaces of OrderService. The «service» application adds domain information such as owner and critical.
Open the order component diagram ↗A profile Extension points to a UML metaclass to establish where a stereotype applies. Use case «extend» points to a base use case and describes behavior inserted under a condition.
Compare the use case diagram ↗Which element can receive the stereotype?
«endpoint» extends the UML metaclass Component. The candidates are the Gateway component, the Session class and the metaclass Class.