Class ResolveXCCFactory
Create a new instance of the XCC resolver factory.
Constructor
-
class ResolveXCCFactory([options])
Arguments: |
- options (object) – A set of options which is used during
instantiation of the resolver class. Specify the properties
radius for the maximal search radius used during fuzzy matching
(Default: 6) and threshold for the match quality threshold
(Default: 0.7).
|
Methods
createResolver
-
ResolveXCCFactory#createResolver(doc[, equalValue][, equalNode][, equalTree])
Arguments: |
- doc (Object) – The original document. Use
loadOriginalDocument of the document factory to load a suitable
document.
- equalValue (function) – The equality test-function used when
comparing node values against context values of a patch. Use the
method createValueTest of the document factory to create a
suitable function.
- equalNode (function) – The equality test-function used when
comparing two nodes. Use the method createNodeEqualityTest of
the document factory to create a suitable function.
- equalTree (function) – The equality test-function used when
comparing two subtrees. Use the method createNodeEqualityTest of
the document factory to create a suitable function.
|
Returns ContextResolver: |
| An initialized context aware resolver instance.
|
Return new initialized instance of the XCC resolver algorithm for the given
document.