Class SendActions
java.lang.Object
com.dassault_systemes.modeler.sysml.model.SendActions
Utility class providing helper methods for working with
SendActionUsage-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intIndex of the payload parameter.static final intIndex of the receiver parameter.static final intIndex of the sender parameter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic FeaturegetOrCreatePayloadParameter(SendActionUsage sendActionUsage) Returns the payload parameter of the send action usage, creating it if necessary.static FeaturegetOrCreateReceiverParameter(SendActionUsage sendActionUsage) Returns the receiver parameter of the send action usage, creating it if necessary.static FeaturegetOrCreateSenderParameter(SendActionUsage sendActionUsage) Returns the sender parameter of the send action usage, creating it if necessary.static FeaturegetOwnedPayloadParameter(SendActionUsage sendActionUsage) Returns the owned payload parameter of the send action usage, if any.static FeaturegetOwnedReceiverParameter(SendActionUsage sendActionUsage) Returns the owned receiver parameter of the send action usage, if any.static FeaturegetOwnedSenderParameter(SendActionUsage sendActionUsage) Returns the owned sender parameter of the send action usage, if any.
-
Field Details
-
PAYLOAD_PARAMETER_INDEX
public static final int PAYLOAD_PARAMETER_INDEXIndex of the payload parameter.- See Also:
-
SENDER_PARAMETER_INDEX
public static final int SENDER_PARAMETER_INDEXIndex of the sender parameter.- See Also:
-
RECEIVER_PARAMETER_INDEX
public static final int RECEIVER_PARAMETER_INDEXIndex of the receiver parameter.- See Also:
-
-
Constructor Details
-
SendActions
public SendActions()
-
-
Method Details
-
getOwnedPayloadParameter
Returns the owned payload parameter of the send action usage, if any.- Parameters:
sendActionUsage- the send action usage- Returns:
- payload parameter, or null if none exists
-
getOrCreatePayloadParameter
Returns the payload parameter of the send action usage, creating it if necessary.- Parameters:
sendActionUsage- the send action usage- Returns:
- existing or newly created payload parameter
-
getOwnedSenderParameter
Returns the owned sender parameter of the send action usage, if any.- Parameters:
sendActionUsage- the send action usage- Returns:
- sender parameter, or null if none exists
-
getOrCreateSenderParameter
Returns the sender parameter of the send action usage, creating it if necessary.- Parameters:
sendActionUsage- the send action usage- Returns:
- existing or newly created sender parameter
-
getOwnedReceiverParameter
Returns the owned receiver parameter of the send action usage, if any.- Parameters:
sendActionUsage- the send action usage- Returns:
- receiver parameter, or null if none exists
-
getOrCreateReceiverParameter
Returns the receiver parameter of the send action usage, creating it if necessary.- Parameters:
sendActionUsage- the send action usage- Returns:
- existing or newly created receiver parameter
-