Class SendActions

java.lang.Object
com.dassault_systemes.modeler.sysml.model.SendActions

@OpenApiAll public class SendActions extends Object
Utility class providing helper methods for working with SendActionUsage
  • Field Details

    • PAYLOAD_PARAMETER_INDEX

      public static final int PAYLOAD_PARAMETER_INDEX
      Index of the payload parameter.
      See Also:
    • SENDER_PARAMETER_INDEX

      public static final int SENDER_PARAMETER_INDEX
      Index of the sender parameter.
      See Also:
    • RECEIVER_PARAMETER_INDEX

      public static final int RECEIVER_PARAMETER_INDEX
      Index of the receiver parameter.
      See Also:
  • Constructor Details

    • SendActions

      public SendActions()
  • Method Details

    • getOwnedPayloadParameter

      @CheckForNull public static Feature getOwnedPayloadParameter(SendActionUsage sendActionUsage)
      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

      public static Feature getOrCreatePayloadParameter(SendActionUsage sendActionUsage)
      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

      @CheckForNull public static Feature getOwnedSenderParameter(SendActionUsage sendActionUsage)
      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

      public static Feature getOrCreateSenderParameter(SendActionUsage sendActionUsage)
      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

      @CheckForNull public static Feature getOwnedReceiverParameter(SendActionUsage sendActionUsage)
      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

      public static Feature getOrCreateReceiverParameter(SendActionUsage sendActionUsage)
      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