org.eclipse.ocl.examples.pivot
Interface Comment

All Superinterfaces:
Element, org.eclipse.emf.ecore.EObject, org.eclipse.emf.common.notify.Notifier, PivotObject, Visitable
All Known Implementing Classes:
CommentImpl

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:
PivotPackage.getComment()
Generated
Model

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.
 void setBody(java.lang.String value)
          Sets the value of the 'Body' attribute.
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.Element
createOwnedComment, getETarget, getOwnedComments
 
Methods inherited from interface org.eclipse.emf.ecore.EObject
eAllContents, eClass, eContainer, eContainingFeature, eContainmentFeature, eContents, eCrossReferences, eGet, eGet, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 
Methods inherited from interface org.eclipse.ocl.examples.pivot.util.Visitable
accept, eClass
 

Method Detail

getBody

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

Returns:
the value of the 'Body' attribute.
See Also:
setBody(String), PivotPackage.getComment_Body()
Generated
Model
dataType="org.eclipse.ocl.examples.pivot.String" ordered="false"

setBody

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

Parameters:
value - the new value of the 'Body' attribute.
See Also:
getBody()
Generated

getAnnotatedElements

org.eclipse.emf.common.util.EList<Element> getAnnotatedElements()
Returns the value of the 'Annotated Element' reference list. The list contents are of type Element. References the Element(s) being commented.

Returns:
the value of the 'Annotated Element' reference list.
See Also:
PivotPackage.getComment_AnnotatedElement()
Generated
Model
ordered="false"