Step
abstractA step object represents an atomic change. It generally applies only to the document it was created for, since the positions stored in it will only make sense for that document.
New steps are defined by creating classes that extend Step
,
overriding the apply
, invert
, map
, getMap
and fromJSON
methods, and registering your class with a unique
JSON-serialization identifier using
Step.jsonID
.
abstract class Step {
}
§Methods
§
Applies this step to the given document, returning a result object that either indicates failure, if the step can not be applied to this document, or indicates success by containing a transformed document.