Protected Attributes and Relationships
Protection refers to the visibility of attributes and relationships to action diagrams and operations.
gen85
Protected_Attributes_and_Relationships
A protected attribute or relationship (depending on the preceding rules) may or may not be visible to an action diagram or operation.
Rule on Protecting Attributes
Only attributes of restricted or encapsulated entities can be protected. An attribute defined as protected, can be used in a view of a restricted or encapsulated entity only if either of these conditions exists:
- The view is an entity action or local view in an operation of the entity that owns the attribute. (The operation itself may be public or protected.)
- The view is an import or export view in a protected operation of the entity that owns the attribute.
Rule on Protecting Relationships
Only restricted entities can have protected relationships. A relationship defined as protected can only be referenced in operations of the two related entities.