Class AttachedOperation

Construct a new attached operation instance. An attached operation is always bound to a tree-node identified thru the anchor.

Constructor

class AttachedOperation(anchor, type, path, remove, insert, handler)
Arguments:
  • anchor
  • type
  • path
  • remove
  • insert
  • handler

Methods

toString

AttachedOperation#toString()

Return string representation of the operation.

Attributes

anchor

anchor

The anchor where the operation is attached

handler

handler

A handler object used to toggle operation state in the document. I.e. apply and unapply the operation.

insert

insert

Null (remove), one tree.Node (update) or sequence of nodes (insert)

path

path

An array of integers representing the top-down path from the root node to the anchor of this operation. The anchor point always is the first position after the leading context values. For insert operations it will must point to the first element of the tail context.

remove

remove

Null (insert), one tree.Node (update) or sequence of nodes (delete)

type

type

The operation type, one of UPDATE_NODE_TYPE, UPDATE_FOREST_TYPE

Table Of Contents

Previous topic

Class DeltaCollector

Next topic

Class Attacher