Software Disclaimer

Class UML 2.5::Comment


A Comment is a textual annotation that can be attached to a set of Elements.

Direct Superclasses: Element

Direct Subclasses:

Class Precedence List: Comment, Element


annotatedElement : Element (0 *); -- source Comment
body : String (0 1); -- source Comment

Specifies a string that is the comment.

ownedComment : Comment (0 *); -- source Element
ownedElement : Element (0 *); -- source Element

The Elements owned by this Element.
{composite, readonly}
Derived union with sources: (ownedComment)
Opposite: Element.owner

owner : Element (0 1); -- source Element


Signature: CMOF_14_3_18a() : Boolean;
Description: 14.3 [18] Comments may only annotate instances of NamedElement
Expression: annotatedElement->forAll(e | e.oclIsKindOf(NamedElement))


No additional operations.

Send questions or comments to