Class SValidation
- java.lang.Object
-
- jadex.bpmn.editor.gui.controllers.SValidation
-
public class SValidation extends java.lang.ObjectClass for validating operations.
-
-
Constructor Summary
Constructors Constructor Description SValidation()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static booleanareMessageEventsConnectable(java.lang.Object source, java.lang.Object target)Returns if one of two message events are connectable directly or through conversion to throwing.static booleanareMessageEventsConnectableInThisDirection(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 booleanconvertMessageEventsForConnection(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.StringgetDataEdgeValidationError(java.lang.Object source, java.lang.Object target)Validates a data edge connection.static java.lang.StringgetMessagingEdgeValidationError(java.lang.Object source, java.lang.Object target)Validates a messaging edge connection.static java.lang.StringgetMoveValidationError(java.lang.Object[] cells, java.lang.Object target)static java.lang.StringgetSequenceEdgeValidationError(java.lang.Object source, java.lang.Object target)Validates a sequence edge connection.
-
-
-
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.
-
-