In Unified Modeling Language (UML) 2.5.1, an Element[1] is "a constituent of a model. As such, it has the capability of owning other Elements."[1]

In UML 2.4.1, an element is an abstract class with no superclass.[2] It is used as the superclass or base class, as known by object-oriented programmers, for all the metaclasses in the UML infrastructure library. All other elements in the UML inherit, directly or indirectly from Element. An Element has a derived composition association to itself to support the general capability for elements to own other elements. As such, it has no additional attributes as part of its specification.

Associations

edit

An association describes a set of tuples of typed instances.[3]

  • ownedComment: Comment[*]: An Element may own, or have associated to it, an arbitrary quantity of comments.[2] A comment is sometimes referred to as a note.[3] The asterisk in brackets is the Comment's multiplicity which means that there can be an arbitrary number of comments owned by an Element.
  • / ownedElement: Element[*]: An Element may own an arbitrary quantity of elements.[2] This is called a derived union, symbolized by the forward slash notation. The asterisk in brackets is the Element's multiplicity which means that there can be an arbitrary number of elements owned by an Element.
  • / owner: Element[0..1]: The Element that owns this element.[2] This is called a derived union, symbolized by the forward slash notation. The [0..1] is the owning Element's multiplicity which means that there can only be zero to one owner element.

The Element class belongs to the base package in the UML called the Kernel. This is the package that contains the superclasses that make up the superstructure of the UML.

Subclasses of Element provide semantics appropriate to the concept they represent. The comments for an Element add no semantics but may represent information useful to the reader of the model.[2]

Notes

edit

Updated for UML version 2.4.1. Further updated for UML version 2.5.1.

References

edit
  1. ^ a b "Element". Unified Modeling Language 2.5.1. OMG Document Number formal/2017-12-05. Object Management Group Standards Development Organization (OMG SDO). December 2017. p. 43.
  2. ^ a b c d e OMG Unified Modeling Language, Superstructure, Version 2.4.1
  3. ^ a b UML 2 Certification Guide, Tim Weilkiens and Bernd Oestereich - ISBN 0-12-373585-8

Further reading

edit

Weilkiens, Tim; Oestereich, Bernd (2007). UML 2 Certification Guide. Morgan Kaufmann. ISBN 978-0-12-373585-0.

"Element". Unified Modeling Language 2.5.1. OMG Document Number formal/2017-12-05. Object Management Group Standards Development Organization (OMG SDO). December 2017. p. 43.

edit