Package com.nomagic.magicdraw.uml2
Class Interactions
java.lang.Object
com.nomagic.magicdraw.uml2.Interactions
Convenient static methods to work with Interactions elements.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic Message
getMessageSubstitute
(Message message) Returns message substitute for given message or the given message, if no substitution found.static Operation
getOperationOfCallMessage
(Message message) Gets the operation of call message.static Element
getReceiveElement
(Message message) Gets the receive element.static ConnectableElement
getRemovableConnectableElement
(Lifeline lifeline) Check if the represents can be removed along with lifeline.static Element
getSendElement
(Message message) Return send event holder of the given message.static Signal
getSignalOfMessage
(Message message) Gets the signal of message.static boolean
isCallMessage
(Message message) Indicates if message is a call message.static boolean
isCreateMessage
(Message msg) Checks if is creates the message.static boolean
isDestroyMessage
(Message msg) Checks if is destroy message.static boolean
isFoundMessage
(Message message) Indicates if given message is a found message.static boolean
isLostMessage
(Message message) Indicates if given message is a lost message.static boolean
isReplyMessage
(Message message) Indicates if this message is a reply message.static boolean
isSendMessage
(Message message) Checks if is send message.static boolean
isSynchMessage
(Message msg) Checks if is synch message.
-
Constructor Details
-
Interactions
public Interactions()
-
-
Method Details
-
getReceiveElement
Gets the receive element.- Parameters:
message
- the message- Returns:
- the receive element
-
getSendElement
Return send event holder of the given message.It can be:
- covered lifeline
- gate owner (Interaction, CombinedFragment, InteractionUse)
- Parameters:
message
- Given message, which will be analysed- Returns:
- One of Lifeline, Interaction, CombinedFragment, InteractionUse. Can return null, if message has no send event
-
getRemovableConnectableElement
Check if the represents can be removed along with lifeline.- Parameters:
lifeline
- lifeline- Returns:
- connectible element that should be disposed
-
getSignalOfMessage
Gets the signal of message.- Parameters:
message
- the message- Returns:
- the signal of message
-
isSendMessage
Checks if is send message.- Parameters:
message
- the message- Returns:
- true, if is send message
-
isLostMessage
Indicates if given message is a lost message.- Parameters:
message
- message to check.- Returns:
- true if given message is a lost message, false otherwise.
-
isFoundMessage
Indicates if given message is a found message.- Parameters:
message
- message to check.- Returns:
- true if given message is a found message, false otherwise.
-
isSynchMessage
Checks if is synch message.- Parameters:
msg
- the msg- Returns:
- true, if is synch message
-
isDestroyMessage
Checks if is destroy message.- Parameters:
msg
- the msg- Returns:
- true, if is destroy message
-
isReplyMessage
Indicates if this message is a reply message.- Parameters:
message
- - message to check.- Returns:
- true if this is a reply message, false otherwise.
-
isCallMessage
Indicates if message is a call message.- Parameters:
message
- - message to check.- Returns:
- true if this message is a call message, false otherwise.
-
isCreateMessage
Checks if is creates the message.- Parameters:
msg
- the msg- Returns:
- true, if is creates the message
-
getMessageSubstitute
Returns message substitute for given message or the given message, if no substitution found. Message substitution is message found by the formal gate.- Parameters:
message
- message, for which substitution will be searched- Returns:
- given message if no substitution found
-
getOperationOfCallMessage
Gets the operation of call message.- Parameters:
message
- the message- Returns:
- the operation of call message
-