Class SValidation


  • public class SValidation
    extends java.lang.Object
    Class for validating operations.
    • Constructor Summary

      Constructors 
      Constructor Description
      SValidation()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static boolean areMessageEventsConnectable​(java.lang.Object source, java.lang.Object target)
      Returns if one of two message events are connectable directly or through conversion to throwing.
      static boolean areMessageEventsConnectableInThisDirection​(java.lang.Object source, java.lang.Object target)
      Returns if one of two message events are connectable directly or through conversion to throwing in the given direction.
      static boolean convertMessageEventsForConnection​(java.lang.Object source, java.lang.Object target)
      Returns if one of two message events are connectable directly or through conversion to throwing in the given direction.
      static java.lang.String getDataEdgeValidationError​(java.lang.Object source, java.lang.Object target)
      Validates a data edge connection.
      static java.lang.String getMessagingEdgeValidationError​(java.lang.Object source, java.lang.Object target)
      Validates a messaging edge connection.
      static java.lang.String getMoveValidationError​(java.lang.Object[] cells, java.lang.Object target)  
      static java.lang.String getSequenceEdgeValidationError​(java.lang.Object source, java.lang.Object target)
      Validates a sequence edge connection.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SValidation

        public SValidation()
    • Method Detail

      • getMoveValidationError

        public static java.lang.String getMoveValidationError​(java.lang.Object[] cells,
                                                              java.lang.Object target)
      • getSequenceEdgeValidationError

        public static java.lang.String getSequenceEdgeValidationError​(java.lang.Object source,
                                                                      java.lang.Object target)
        Validates a sequence edge connection.
        Parameters:
        source - The proposed source of the edge.
        target - The proposed target of the edge.
        Returns:
        Error message explaining why the connection is invalid or null if valid.
      • getMessagingEdgeValidationError

        public static java.lang.String getMessagingEdgeValidationError​(java.lang.Object source,
                                                                       java.lang.Object target)
        Validates a messaging edge connection.
        Parameters:
        source - The proposed source of the edge.
        target - The proposed target of the edge.
        Returns:
        Error message explaining why the connection is invalid or null if valid.
      • getDataEdgeValidationError

        public static java.lang.String getDataEdgeValidationError​(java.lang.Object source,
                                                                  java.lang.Object target)
        Validates a data edge connection.
        Parameters:
        source - The proposed source of the edge.
        target - The proposed target of the edge.
        Returns:
        Error message explaining why the connection is invalid or null if valid.
      • areMessageEventsConnectable

        public static final boolean areMessageEventsConnectable​(java.lang.Object source,
                                                                java.lang.Object target)
        Returns if one of two message events are connectable directly or through conversion to throwing.
        Parameters:
        evt1 - First event.
        evt2 - Second event.
        Returns:
        True if they are connectable in some direction.
      • areMessageEventsConnectableInThisDirection

        public static final boolean areMessageEventsConnectableInThisDirection​(java.lang.Object source,
                                                                               java.lang.Object target)
        Returns if one of two message events are connectable directly or through conversion to throwing in the given direction.
        Parameters:
        evt1 - First event.
        evt2 - Second event.
        Returns:
        True if they are connectable in the given direction.
      • convertMessageEventsForConnection

        public static final boolean convertMessageEventsForConnection​(java.lang.Object source,
                                                                      java.lang.Object target)
        Returns if one of two message events are connectable directly or through conversion to throwing in the given direction.
        Parameters:
        source - First event.
        target - Second event.
        Returns:
        True if the direction needs to be flipped.