Class DeltaDocument

Create new delta document instance.

Constructor

class DeltaDocument(type[, name], data[, attached][, detached][, src][, matching])
Arguments:
  • type (string) – The document type. E.g. ‘xml’ or ‘json’
  • name (string) – The file name.
  • data (object) – A reference to the underlying document, the DOM.
  • attached (array) – An array of attached operations ( :js:class:AttachedOperation).
  • detached (array) – An array of detached operations (e.g. :js:class:DetachedContextOperation) when loading from a file.
  • src (string) – The serialized version of this document, e.g. the XML markup code.
  • matching (object) – A matching which should be used to build up the document later on.

Methods

installHandlers

DeltaDocument#installHandlers(handlerfactory)
Arguments:
  • handlerfactory (Object) – An instance returned from the document factory createHandlerFactory method.

Install handlers for a resolved delta.

toggleHandlers

DeltaDocument#toggleHandlers()

Toggle all handlers of a delta document.

Attributes

attached

attached

An array of attached operations.

data

data

A reference to the underlying document, e.g. the DOMDocument object.

detached

detached

An array of dettached operations.

matching

matching

A matching which is used to collect attached operations when building the delta document.

name

name

The file name

src

src

The serialized version of this document.

type

type

The document type. E.g. ‘xml’ or ‘json’

Table Of Contents

Previous topic

Class Document

Next topic

Class DiffSkelmatchFactory