Enum Class OperationKind
- All Implemented Interfaces:
Serializable,Comparable<OperationKind>,Constable
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 Summary
Enum ConstantsEnum ConstantDescriptionOperation representing navigation in the command history:Editing.undo()orEditing.redo().Operation executed viaEditing.execute(String, Runnable).Any operation that is not performed through theEditingAPI. -
Method Summary
Modifier and TypeMethodDescriptionstatic OperationKindReturns the enum constant of this class with the specified name.static OperationKind[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
-
EDITING_EXECUTE
Operation executed viaEditing.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
Operation representing navigation in the command history:Editing.undo()orEditing.redo().This indicates that the transaction was triggered by reverting or reapplying previously executed commands.
-
-
Method Details
-
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
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 nameNullPointerException- if the argument is null
-