Element interface

An Element is a constituent of a model. As such, it has the capability of owning other Elements.

Attributes

NameTypeDescription
appliedStereotypesStereotype [0..*]Indicates which stereotypes from the selected profile (or profiles) are applied to the element. The selected profiles are the profiles that are applied to the containing package. 
idstring Gets the unique ID of the element. 
ownedCommentsComment [0..*]The Comments owned by this Element. 
ownerElement [0..1]Gets the element that owns this element. 
taggedValuesTaggedValueSpecification [0..*]Contains 0 or more tagged values for the element. 

Operations

NameReturnsDescription
getFirstCommentBody()

Element.getFirstCommentBody

X

Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments.

Return value
Type: string [1..1]
The body string of the first comment. If the element has no comments, an empty string is returned.
string [1..1]Gets the text contents of the first comment in the element's owned comments, or an empty string if the element has no comments.