Skip to main content
blob: 14e15bc6024157c4ee9d2507a26f671cfd4725bc (plain) (blame)
<?xml version='1.0' encoding='utf-8' ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" ""><html xmlns=""><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8"/></head><body><h1 id="Papyrus_Profile_Architecture">Papyrus Profile Architecture</h1><p><b>Contents</b></p><ol style="list-style: none;"><li><a href="#Papyrus_Profile_Architecture">Papyrus Profile Architecture</a><ol style="list-style: none;"><li><a href="#Profile_and_Stereotype_Definitions_Architecture">Profile and Stereotype Definitions Architecture</a></li><li><a href="#Profile_and_Stereotype_applications_Architecture">Profile and Stereotype applications Architecture</a></li></ol></li></ol><p>This section describes the architecture used to define uml Profiles in Papyrus. </p><p>Papyrus Profiles and Stereotypes implementation is made of two different parts:</p><ul><li>The Profile and Stereotype <b>definitions</b> - This part is used to handle the stereotype and profile definitions.</li><li>The Profile and Stereotype <b>applications</b> - This part is used to apply an existing stereotype or profile to an UML element.</li></ul><h2 id="Profile_and_Stereotype_Definitions_Architecture">Profile and Stereotype Definitions Architecture</h2><p>Papyrus allows to create Profiles and Sterotypes in any kind of models. But, if you want to define Profiles and Stereotypes in order to apply them to UML elements, <b>you need to define a Profile in a 'Papyrus profile resource</b>' (i.e. a file).</p><p>The definitions of Profiles and Stereoptypes is made of two parts: the UML definitions, and the corresponding dynamic model. User define profiles and stereotypes in UML. The corresponding dynamic model is computed by Papyrus when the resource is saved.</p><p>UML definition of profile follows UML standard: Stereotypes must be defined in a uml::Profile.</p><p>The dynamic model is defined by Papyrus using the EMF/UML framework. This dynamic model is associated to a version number. The version number is incremented each time the dynamic model is re-created, so each time the profile resource is saved.</p><h2 id="Profile_and_Stereotype_applications_Architecture">Profile and Stereotype applications Architecture</h2><p>When Profile or a Stereotype is applied to an UML element, this create a Application object referencing both the uml element, and the profile or stereotype definition. 
Thus, an uml element is not directly linked to an Application object.</p><p>Application objects are normally stored in the resource file containing the uml element they reference. They are not stored inside the UML model. Rather, they are stored alongside of the uml model. </p></body></html>

Back to the top