|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A representation of the model object 'Message'. A message defines a particular communication between lifelines of an interaction.
The following features are supported:
UMLPackage.getMessage()
Field Summary |
Fields inherited from interface org.eclipse.uml2.uml.NamedElement |
SEPARATOR |
Method Summary | |
ValueSpecification |
createArgument(String name,
Type type,
EClass eClass)
Creates a new ValueSpecification , with the specified 'Name', and 'Type', and appends it to the 'Argument' containment reference list |
ValueSpecification |
getArgument(String name,
Type type)
Retrieves the first ValueSpecification with the specified 'Name', and 'Type' from the 'Argument' containment reference list |
ValueSpecification |
getArgument(String name,
Type type,
boolean ignoreCase,
EClass eClass,
boolean createOnDemand)
Retrieves the first ValueSpecification with the specified 'Name', and 'Type' from the 'Argument' containment reference list |
EList |
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 |
boolean |
validateArguments(DiagnosticChain diagnostics,
Map 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 true |
boolean |
validateCannotCrossBoundaries(DiagnosticChain diagnostics,
Map context)
Messages cannot cross bounderies of CombinedFragments or their operands. |
boolean |
validateOccurrenceSpecifications(DiagnosticChain diagnostics,
Map 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(DiagnosticChain diagnostics,
Map context)
If the sending MessageEvent and the receiving MessageEvent of the same Message are on the same Lifeline, the sending MessageEvent must be ordered before the receiving MessageEvent. |
boolean |
validateSignatureIsOperation(DiagnosticChain diagnostics,
Map context)
In the case when the Message signature is an Operation, the arguments of the Message must correspond to the parameters of the Operation. |
boolean |
validateSignatureIsSignal(DiagnosticChain diagnostics,
Map 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(DiagnosticChain diagnostics,
Map context)
The signature must either refer an Operation (in which case messageSort is either synchCall or asynchCall) or a Signal (in which case messageSort is asynchSignal). |
Methods inherited from interface org.eclipse.uml2.uml.NamedElement |
allNamespaces, allOwningPackages, createDependency, createNameExpression, 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.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 |
public MessageKind getMessageKind()
"unknown"
.
The literals are from the enumeration MessageKind
.
The derived kind of the Message (complete, lost, found or unknown)
MessageKind
,
UMLPackage.getMessage_MessageKind()
public MessageSort getMessageSort()
"synchCall"
.
The literals are from the enumeration MessageSort
.
The sort of communication reflected by the Message
MessageSort
,
Message.setMessageSort(MessageSort)
,
UMLPackage.getMessage_MessageSort()
public void setMessageSort(MessageSort value)
Message Sort
' attribute.
value
- the new value of the 'Message Sort' attribute.MessageSort
,
Message.getMessageSort()
public MessageEnd getReceiveEvent()
Message.setReceiveEvent(MessageEnd)
,
UMLPackage.getMessage_ReceiveEvent()
public void setReceiveEvent(MessageEnd value)
Receive Event
' reference.
value
- the new value of the 'Receive Event' reference.Message.getReceiveEvent()
public MessageEnd getSendEvent()
Message.setSendEvent(MessageEnd)
,
UMLPackage.getMessage_SendEvent()
public void setSendEvent(MessageEnd value)
Send Event
' reference.
value
- the new value of the 'Send Event' reference.Message.getSendEvent()
public Connector getConnector()
Message.setConnector(Connector)
,
UMLPackage.getMessage_Connector()
public void setConnector(Connector value)
Connector
' reference.
value
- the new value of the 'Connector' reference.Message.getConnector()
public Interaction getInteraction()
Message
'.
The enclosing Interaction owning the Message
Message.setInteraction(Interaction)
,
UMLPackage.getMessage_Interaction()
,
Interaction.getMessages()
public void setInteraction(Interaction value)
Interaction
' container reference.
value
- the new value of the 'Interaction' container reference.Message.getInteraction()
public EList getArguments()
ValueSpecification
.
The arguments of the Message
UMLPackage.getMessage_Argument()
public ValueSpecification createArgument(String name, Type type, 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
.Message.getArguments()
public ValueSpecification getArgument(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
.Message.getArguments()
public ValueSpecification getArgument(String name, Type type, boolean ignoreCase, 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
.Message.getArguments()
public NamedElement getSignature()
UMLPackage.getMessage_Signature()
public boolean validateSendingReceivingMessageEvent(DiagnosticChain diagnostics, Map context)
public boolean validateSignatureReferTo(DiagnosticChain diagnostics, Map context)
public boolean validateSignatureIsOperation(DiagnosticChain diagnostics, Map context)
public boolean validateSignatureIsSignal(DiagnosticChain diagnostics, Map context)
public boolean validateArguments(DiagnosticChain diagnostics, Map context)
public boolean validateCannotCrossBoundaries(DiagnosticChain diagnostics, Map context)
public boolean validateOccurrenceSpecifications(DiagnosticChain diagnostics, Map context)
|
Copyright 2003, 2006 IBM Corporation and others. All Rights Reserved. |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |