org.eclipse.uml2.uml
Interface MessageEnd

All Superinterfaces:
Element, org.eclipse.emf.ecore.EModelElement, org.eclipse.emf.ecore.EObject, NamedElement, org.eclipse.emf.common.notify.Notifier
All Known Subinterfaces:
DestructionOccurrenceSpecification, Gate, MessageOccurrenceSpecification

public interface MessageEnd
extends NamedElement

A representation of the model object 'Message End'. MessageEnd is an abstract specialization of NamedElement that represents what can occur at the end of a Message.

From package UML::Interactions.

The following features are supported:

See Also:
UMLPackage.getMessageEnd()

Field Summary
 
Fields inherited from interface org.eclipse.uml2.uml.NamedElement
SEPARATOR
 
Method Summary
 org.eclipse.emf.common.util.EList<InteractionFragment> enclosingFragment()
          This query returns a set including the enclosing InteractionFragment this MessageEnd is enclosed within.
 Message getMessage()
          Returns the value of the 'Message' reference
 boolean isReceive()
          This query returns value true if this MessageEnd is a receiveEvent.
 boolean isSend()
          This query returns value true if this MessageEnd is a sendEvent.
 org.eclipse.emf.common.util.EList<MessageEnd> oppositeEnd()
          This query returns a set including the MessageEnd (if exists) at the opposite end of the Message for this MessageEnd.
 void setMessage(Message value)
          Sets the value of the 'Message' reference
 
Methods inherited from interface org.eclipse.uml2.uml.NamedElement
allNamespaces, allOwningPackages, createDependency, createNameExpression, createUsage, getClientDependencies, getClientDependency, getClientDependency, getLabel, getLabel, getName, getNameExpression, getNamespace, getQualifiedName, getVisibility, isDistinguishableFrom, isSetName, isSetVisibility, separator, setName, setNameExpression, setVisibility, unsetName, unsetVisibility, validateHasNoQualifiedName, validateHasQualifiedName, validateVisibilityNeedsOwnership
 
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, eInvoke, eIsProxy, eIsSet, eResource, eSet, eUnset
 
Methods inherited from interface org.eclipse.emf.common.notify.Notifier
eAdapters, eDeliver, eNotify, eSetDeliver
 

Method Detail

getMessage

Message getMessage()
Returns the value of the 'Message' reference. References a Message.

From package UML::Interactions.

Returns:
the value of the 'Message' reference.
See Also:
setMessage(Message), UMLPackage.getMessageEnd_Message()

setMessage

void setMessage(Message value)
Sets the value of the 'Message' reference.

Parameters:
value - the new value of the 'Message' reference.
See Also:
getMessage()

oppositeEnd

org.eclipse.emf.common.util.EList<MessageEnd> oppositeEnd()
This query returns a set including the MessageEnd (if exists) at the opposite end of the Message for this MessageEnd. result = (message->asSet().messageEnd->asSet()->excluding(self)) message->notEmpty()

From package UML::Interactions.


isSend

boolean isSend()
This query returns value true if this MessageEnd is a sendEvent. message->notEmpty() result = (message.sendEvent->asSet()->includes(self))

From package UML::Interactions.


isReceive

boolean isReceive()
This query returns value true if this MessageEnd is a receiveEvent. message->notEmpty() result = (message.receiveEvent->asSet()->includes(self))

From package UML::Interactions.


enclosingFragment

org.eclipse.emf.common.util.EList<InteractionFragment> enclosingFragment()
This query returns a set including the enclosing InteractionFragment this MessageEnd is enclosed within. result = (if self->select(oclIsKindOf(Gate))->notEmpty() then -- it is a Gate let endGate : Gate = self->select(oclIsKindOf(Gate)).oclAsType(Gate)->asOrderedSet()->first() in if endGate.isOutsideCF() then endGate.combinedFragment.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(endGate.combinedFragment.enclosingOperand.oclAsType(InteractionFragment)->asSet()) else if endGate.isInsideCF() then endGate.combinedFragment.oclAsType(InteractionFragment)->asSet() else if endGate.isFormal() then endGate.interaction.oclAsType(InteractionFragment)->asSet() else if endGate.isActual() then endGate.interactionUse.enclosingInteraction.oclAsType(InteractionFragment)->asSet()-> union(endGate.interactionUse.enclosingOperand.oclAsType(InteractionFragment)->asSet()) else null endif endif endif endif else -- it is a MessageOccurrenceSpecification let endMOS : MessageOccurrenceSpecification = self->select(oclIsKindOf(MessageOccurrenceSpecification)).oclAsType(MessageOccurrenceSpecification)->asOrderedSet()->first() in if endMOS.enclosingInteraction->notEmpty() then endMOS.enclosingInteraction.oclAsType(InteractionFragment)->asSet() else endMOS.enclosingOperand.oclAsType(InteractionFragment)->asSet() endif endif)

From package UML::Interactions.


Copyright 2003, 2014 IBM Corporation, CEA, and others.
All Rights Reserved.