All Superinterfaces:
BaseElement, Cloneable, Comparable, Element, org.eclipse.emf.ecore.EObject, MDObject, com.dassault_systemes.modeler.foundation.model.ModelElement, ModelObject, org.eclipse.emf.common.notify.Notifier, javax.jmi.reflect.RefBaseObject, javax.jmi.reflect.RefFeatured, javax.jmi.reflect.RefObject

public interface Comment extends Element
A representation of the model object 'Comment'.

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

The following features are supported:

See Also:
Model:
annotation="MOF package='classes.mdkernel'"
Generated:
  • Method Details

    • getAnnotatedElement

      Collection<Element> getAnnotatedElement()
      Returns the value of the 'Annotated Element' reference list. The list contents are of type Element. It is bidirectional and its opposite is 'comment Of Annotated Element'. References the Element(s) being commented.
      Returns:
      the value of the 'Annotated Element' reference list.
      See Also:
      Model:
      opposite="_commentOfAnnotatedElement" ordered="false"
      Generated:
    • getBody

      @CheckForNull String getBody()
      Returns the value of the 'Body' attribute. The default value is "". Specifies a string that is the comment.
      Returns:
      the value of the 'Body' attribute.
      See Also:
      Model:
      default="" dataType="com.nomagic.uml2.ext.magicdraw.String" ordered="false"
      Generated:
    • setBody

      void setBody(@CheckForNull String value)
      Sets the value of the 'Body' attribute.
      Parameters:
      value - the new value of the 'Body' attribute.
      See Also:
      Generated:
    • getOwningElement

      @CheckForNull Element getOwningElement()
      Returns the value of the 'Owning Element' container reference. It is bidirectional and its opposite is 'Owned Comment'.

      If the meaning of the 'Owning Element' container reference isn't clear, there really should be more of a description here...

      Returns:
      the value of the 'Owning Element' container reference.
      See Also:
      Model:
      opposite="ownedComment" transient="false" ordered="false"
      Generated:
    • setOwningElement

      void setOwningElement(@CheckForNull Element value)
      Sets the value of the 'Owning Element' container reference.
      Parameters:
      value - the new value of the 'Owning Element' container reference.
      See Also:
      Generated:
    • hasAnnotatedElement

      boolean hasAnnotatedElement() throws javax.jmi.reflect.JmiException
      Throws:
      javax.jmi.reflect.JmiException
      Generated: