Interface Transaction


public interface Transaction
A collection of changes. Transactions can be used to describe higher-level model edits.
  • Method Summary

    Modifier and Type Method Description
    java.util.List<Change> changes()
    Returns the atomic changes that are part of this transaction.
    boolean isUndoable()
    Indicates whether this transaction is undoable.
    void undo()
    Undos this transaction.
  • Method Details

    • changes

      java.util.List<Change> changes()
      Returns the atomic changes that are part of this transaction.
      Returns:
      a list of the atomic changes that are part of this transaction
    • isUndoable

      boolean isUndoable()
      Indicates whether this transaction is undoable.
      Returns:
      true if this transaction (and all contained atomic changes) is undoable; false otherwise
    • undo

      void undo()
      Undos this transaction.