public interface Message extends NamedElement
From package UML::Interactions.
The following features are supported:
UMLPackage.getMessage()
SEPARATOR
Modifier and Type | Method and Description |
---|---|
ValueSpecification |
createArgument(java.lang.String name,
Type type,
org.eclipse.emf.ecore.EClass eClass)
Creates a new
ValueSpecification , with the specified 'Name', and 'Type', and appends it to the 'Argument' containment reference list |
ValueSpecification |
getArgument(java.lang.String name,
Type type)
Retrieves the first
ValueSpecification with the specified 'Name', and 'Type' from the 'Argument' containment reference list |
ValueSpecification |
getArgument(java.lang.String name,
Type type,
boolean ignoreCase,
org.eclipse.emf.ecore.EClass eClass,
boolean createOnDemand)
Retrieves the first
ValueSpecification with the specified 'Name', and 'Type' from the 'Argument' containment reference list |
org.eclipse.emf.common.util.EList<ValueSpecification> |
getArguments()
Returns the value of the 'Argument' containment reference list.
|
Connector |
getConnector()
Returns the value of the 'Connector' reference
|
Interaction |
getInteraction()
Returns the value of the 'Interaction' container reference.
|
MessageKind |
getMessageKind()
Returns the value of the 'Message Kind' attribute.
|
MessageSort |
getMessageSort()
Returns the value of the 'Message Sort' attribute.
|
MessageEnd |
getReceiveEvent()
Returns the value of the 'Receive Event' reference
|
MessageEnd |
getSendEvent()
Returns the value of the 'Send Event' reference
|
NamedElement |
getSignature()
Returns the value of the 'Signature' reference
|
void |
setConnector(Connector value)
Sets the value of the '
Connector ' reference |
void |
setInteraction(Interaction value)
Sets the value of the '
Interaction ' container reference |
void |
setMessageSort(MessageSort value)
Sets the value of the '
Message Sort ' attribute |
void |
setReceiveEvent(MessageEnd value)
Sets the value of the '
Receive Event ' reference |
void |
setSendEvent(MessageEnd value)
Sets the value of the '
Send Event ' reference |
void |
setSignature(NamedElement value)
Sets the value of the '
Signature ' reference |
boolean |
validateArguments(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Arguments of a Message must only be: i) attributes of the sending lifeline, ii) constants, iii) symbolic values (which are wildcard values representing any legal value), iv) explicit parameters of the enclosing Interaction, v) attributes of the class owning the Interaction.
|
boolean |
validateCannotCrossBoundaries(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
Messages cannot cross boundaries of CombinedFragments or their operands.
|
boolean |
validateOccurrenceSpecifications(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If the MessageEnds are both OccurrenceSpecifications, then the connector must go between the Parts represented by the Lifelines of the two MessageEnds.
|
boolean |
validateSendingReceivingMessageEvent(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
If the sendEvent and the receiveEvent of the same Message are on the same Lifeline, the sendEvent must be ordered before the receiveEvent.
|
boolean |
validateSignatureIsOperationReply(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
In the case when a Message with messageSort reply has a non empty Operation signature, the arguments of the Message must correspond to the out, inout, and return parameters of the Operation.
|
boolean |
validateSignatureIsOperationRequest(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
In the case when a Message with messageSort synchCall or asynchCall has a non empty Operation signature, the arguments of the Message must correspond to the in and inout parameters of the Operation.
|
boolean |
validateSignatureIsSignal(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
In the case when the Message signature is a Signal, the arguments of the Message must correspond to the attributes of the Signal.
|
boolean |
validateSignatureReferTo(org.eclipse.emf.common.util.DiagnosticChain diagnostics,
java.util.Map<java.lang.Object,java.lang.Object> context)
The signature must either refer an Operation (in which case messageSort is either synchCall or asynchCall or reply) or a Signal (in which case messageSort is asynchSignal).
|
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
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
getEAnnotation, getEAnnotations
MessageKind getMessageKind()
"unknown"
.
The literals are from the enumeration MessageKind
.
The derived kind of the Message (complete, lost, found, or unknown).
From package UML::Interactions.
MessageKind
,
UMLPackage.getMessage_MessageKind()
MessageSort getMessageSort()
"synchCall"
.
The literals are from the enumeration MessageSort
.
The sort of communication reflected by the Message.
From package UML::Interactions.
MessageSort
,
setMessageSort(MessageSort)
,
UMLPackage.getMessage_MessageSort()
void setMessageSort(MessageSort value)
Message Sort
' attribute.
value
- the new value of the 'Message Sort' attribute.MessageSort
,
getMessageSort()
MessageEnd getReceiveEvent()
From package UML::Interactions.
setReceiveEvent(MessageEnd)
,
UMLPackage.getMessage_ReceiveEvent()
void setReceiveEvent(MessageEnd value)
Receive Event
' reference.
value
- the new value of the 'Receive Event' reference.getReceiveEvent()
MessageEnd getSendEvent()
From package UML::Interactions.
setSendEvent(MessageEnd)
,
UMLPackage.getMessage_SendEvent()
void setSendEvent(MessageEnd value)
Send Event
' reference.
value
- the new value of the 'Send Event' reference.getSendEvent()
Connector getConnector()
From package UML::Interactions.
setConnector(Connector)
,
UMLPackage.getMessage_Connector()
void setConnector(Connector value)
Connector
' reference.
value
- the new value of the 'Connector' reference.getConnector()
Interaction getInteraction()
Message
'.
This feature subsets the following features:
The enclosing Interaction owning the Message.From package UML::Interactions.
setInteraction(Interaction)
,
UMLPackage.getMessage_Interaction()
,
Interaction.getMessages()
void setInteraction(Interaction value)
Interaction
' container reference.
value
- the new value of the 'Interaction' container reference.getInteraction()
org.eclipse.emf.common.util.EList<ValueSpecification> getArguments()
ValueSpecification
.
This feature subsets the following features:
The arguments of the Message.From package UML::Interactions.
UMLPackage.getMessage_Argument()
ValueSpecification createArgument(java.lang.String name, Type type, org.eclipse.emf.ecore.EClass eClass)
ValueSpecification
, with the specified 'Name', and 'Type', and appends it to the 'Argument' containment reference list.
name
- The 'Name' for the new ValueSpecification
, or null
.type
- The 'Type' for the new ValueSpecification
, or null
.eClass
- The Ecore class of the ValueSpecification
to create.ValueSpecification
.getArguments()
ValueSpecification getArgument(java.lang.String name, Type type)
ValueSpecification
with the specified 'Name', and 'Type' from the 'Argument' containment reference list.
name
- The 'Name' of the ValueSpecification
to retrieve, or null
.type
- The 'Type' of the ValueSpecification
to retrieve, or null
.ValueSpecification
with the specified 'Name', and 'Type', or null
.getArguments()
ValueSpecification getArgument(java.lang.String name, Type type, boolean ignoreCase, org.eclipse.emf.ecore.EClass eClass, boolean createOnDemand)
ValueSpecification
with the specified 'Name', and 'Type' from the 'Argument' containment reference list.
name
- The 'Name' of the ValueSpecification
to retrieve, or null
.type
- The 'Type' of the ValueSpecification
to retrieve, or null
.ignoreCase
- Whether to ignore case in String
comparisons.eClass
- The Ecore class of the ValueSpecification
to retrieve, or null
.createOnDemand
- Whether to create a ValueSpecification
on demand if not found.ValueSpecification
with the specified 'Name', and 'Type', or null
.getArguments()
NamedElement getSignature()
From package UML::Interactions.
setSignature(NamedElement)
,
UMLPackage.getMessage_Signature()
void setSignature(NamedElement value)
Signature
' reference.
value
- the new value of the 'Signature' reference.getSignature()
boolean validateSendingReceivingMessageEvent(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSignatureReferTo(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSignatureIsOperationRequest(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSignatureIsOperationReply(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateSignatureIsSignal(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateArguments(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateCannotCrossBoundaries(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.
boolean validateOccurrenceSpecifications(org.eclipse.emf.common.util.DiagnosticChain diagnostics, java.util.Map<java.lang.Object,java.lang.Object> context)
diagnostics
- The chain of diagnostics to which problems are to be appended.context
- The cache of context-specific information.