dartora

ModificationAction

ModificationAction is a lightweight data class produced by ModificationListener when a modification step is recorded. It simply holds a reference to the listener and the modification level at which the step occurred.

Fields

Use

The ModificationAction is passed into user callbacks in ModificationListener.step(action). The callback can inspect the level to decide what to do for modifications at different nesting depths. For example, you might treat level‑0 modifications as content edits and level‑1 modifications as metadata updates.

ModificationAction does not implement any behaviour; it is purely informational.