-
Key: UML22-311
-
Legacy Issue Number: 10831
-
Status: closed
-
Source: International Business Machines ( Andreas Maier)
-
Summary:
In the Superstructure spec 2.1.1, the description of
"PackageableElement::visibility" says: "Default value is false."
However, "false" is not a valid value for the type "VisibilityKind".I suggest that the default visibility be defined as "public". While
it may make sense for properties in a class to be private by default,
this is not the case for packageable elements, here it makes way more
sense to have a public default. The description should be changed
accordingly.Second, the UML Metamodel CMOF files define metaclass
"PackageableElement" to be a specialization of metaclass
"NamedElement" without redefining "visibility". However, the
metaclass description in the superstructure spec does redefine
"visibility". The CMOF files should be adjusted to make the same
redefinitions the description makes. -
Reported: UML 2.1 — Sat, 17 Mar 2007 04:00 GMT
-
Disposition: Resolved — UML 2.2
-
Disposition Summary:
Regarding the first point,.PackageableElement::visibility already has public? as a default value in the normative CMOF models, so the description in the spec text needs to be corrected as suggested in the issue.
Regarding the second point, PackageableElement::visibility in the CMOF models already redefines NamedElement::visibility, matching the spec doc, so no change is needed. -
Updated: Fri, 6 Mar 2015 20:58 GMT
UML22 — "PackageableElement::visibility" uses "false" as default value
- Key: UML22-311
- OMG Task Force: UML 2.2 RTF