Given the following fragment from a profile definition:
Which statement is correct regarding the application of the profile?
A . A class stereotyped as an «architecture decision» must contain attributes named Complexity. Risk, and Status with the designated Enumeration types
B . A class stereotyped as an «architecture decisions will have Stereotype Properties named Complexity. Risk, and Status with the Enumeration types designated in the profile.
C . A class stereotyped as an «architecture decision» must contain attributes named Complexity. Risk, and Status and they may be any user-defined type.
D . A class stereotyped as an «architecture decisions must contain exactly three attributes with user-defined names, two of which are of type Rank, and one of type Status.
Answer: B
Explanation:
In UML, a stereotype is a mechanism that extends the vocabulary of the UML in order to create new model elements. The given profile fragment defines a stereotype «architecture decision» that extends the metaclass Class. This stereotype includes three properties: Complexity, Risk, and Status, each typed by specific enumerations: Rank and Status. When a stereotype is applied to a UML element, it does not create physical attributes on the element; instead, it enables the element to carry additional information as specified by the stereotype ― in this case, as Stereotype Properties. These properties are effectively tagged values that are associated with the stereotyped element. Hence, when a class is stereotyped as an «architecture decision», it will have the ability to hold values for Complexity, Risk, and Status according to the types defined by the enumerations in the profile. This is consistent with the rules defined in the UML 2.x Superstructure Specification for profiles and stereotypes.
Latest OMG-OCUP2-ADV300 Dumps Valid Version with 200 Q&As
Latest And Valid Q&A | Instant Download | Once Fail, Full Refund