Enum Class OperationKind

java.lang.Object
java.lang.Enum<OperationKind>
com.dassault_systemes.modeler.foundation.transaction.OperationKind
All Implemented Interfaces:
Serializable, Comparable<OperationKind>, Constable

@OpenApiAll public enum OperationKind extends Enum<OperationKind>
Represents the kind of operation executed within a transaction.

This enumeration is typically used in transaction listeners and other infrastructure components to understand the intent of a committed change. It allows distinguishing between generic model updates and operations performed through the Editing API, such as command execution, undo, and redo.

Understanding the OperationKind is useful when implementing custom validation, auditing, or integration logic that reacts differently depending on how the model was modified.

See Also:
  • Enum Constant Details

    • OTHER

      public static final OperationKind OTHER
      Any operation that is not performed through the Editing API.

      This includes low-level or programmatic changes where no explicit Editing command is used.

    • EDITING_EXECUTE

      public static final OperationKind EDITING_EXECUTE
      Operation executed via Editing.execute(String, Runnable).

      Represents standard command execution wrapped in a transaction. These operations participate in the command history and support undo/redo.

    • EDITING_BACK_OR_FORWARD

      public static final OperationKind EDITING_BACK_OR_FORWARD
      Operation representing navigation in the command history: Editing.undo() or Editing.redo().

      This indicates that the transaction was triggered by reverting or reapplying previously executed commands.

  • Method Details

    • values

      public static OperationKind[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static OperationKind valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null