Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Mail Systems
Eclipse Documentation

How To Guides
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Problem Solutions
Privacy Policy




Interface Comment

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier

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:

Method Summary
 org.eclipse.emf.common.util.EList< Element> getAnnotatedElements ()
          Returns the value of the ' Annotated Element ' reference list.
 java.lang.String getBody ()
          Returns the value of the ' Body ' attribute
 boolean isSetBody ()
          Returns whether the value of the ' Body' attribute is set
 void setBody (java.lang.String value)
          Sets the value of the ' Body' attribute
 void unsetBody ()
          Unsets the value of the ' Body' attribute
Methods inherited from interface org.eclipse.uml2.uml. Element
addKeyword, allOwnedElements, applyStereotype, createEAnnotation, createOwnedComment, destroy, getApplicableStereotype, getApplicableStereotypes, getAppliedStereotype, getAppliedStereotypes, getAppliedSubstereotype, getAppliedSubstereotypes, getKeywords, getModel, getNearestPackage, getOwnedComments, getOwnedElements, getOwner, getRelationships, getRelationships, getRequiredStereotype, getRequiredStereotypes, getSourceDirectedRelationships, getSourceDirectedRelationships, getStereotypeApplication, getStereotypeApplications, getTargetDirectedRelationships, getTargetDirectedRelationships, getValue, hasKeyword, hasValue, isStereotypeApplicable, isStereotypeApplied, isStereotypeRequired, mustBeOwned, removeKeyword, setValue, unapplyStereotype, validateHasOwner, validateNotOwnSelf
Methods inherited from interface org.eclipse.emf.ecore.EModelElement
getEAnnotation, getEAnnotations
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eIsProxy, eIsSet, eResource, eSet, eUnset
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver

Method Detail


java.lang.String getBody()
Returns the value of the ' Body ' attribute. Specifies a string that is the comment.

the value of the 'Body' attribute.
See Also:
isSetBody(), unsetBody(), setBody(String), UMLPackage.getComment_Body()


void setBody(java.lang.String value)
Sets the value of the ' Body' attribute.

value - the new value of the 'Body' attribute.
See Also:
isSetBody(), unsetBody(), getBody()


void unsetBody()
Unsets the value of the ' Body' attribute.

See Also:
isSetBody(), getBody(), setBody(String)


boolean isSetBody()
Returns whether the value of the ' Body' attribute is set.

whether the value of the 'Body' attribute is set.
See Also:
unsetBody(), getBody(), setBody(String)


Element> getAnnotatedElements()
Returns the value of the ' Annotated Element ' reference list. The list contents are of type Element. References the Element(s) being commented.

the value of the 'Annotated Element' reference list.
See Also:

Copyright 2003, 2007 IBM Corporation and others.
All Rights Reserved.

  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire