Class: Matching

Matching()

Wrapper class for a bidirectional mapping between the nodes of two process trees.

Constructor

new Matching()

Construct a new Matching instance.
Implements:
Source:

Classes

Matching

Members

(constant) newToOldMap :Map.<Node, Node>

The mapping from new to old nodes.
Type:
Source:

(constant) oldToNewMap :Map.<Node, Node>

The mapping from old to new nodes.
Type:
Source:

Methods

areMatched(oldNode, newNode) → {Boolean}

Parameters:
Name Type Description
oldNode Node
newNode Node
Source:
Returns:
True, iff they are matched.
Type
Boolean

getMatch(node) → (nullable) {Node}

Get the matching partner of a new or old node, if it exists.
Parameters:
Name Type Description
node Node
Source:
Returns:
Type
Node

isMatched(node) → {Boolean}

Parameters:
Name Type Description
node Node
Source:
Returns:
True, iff the node is matched.
Type
Boolean

matchNew(newNode, oldNode)

Match a new node to an old node.
Parameters:
Name Type Description
newNode Node
oldNode Node
Source:

size() → {Number}

Source:
Returns:
The number of matched nodes.
Type
Number

toXmlDom(ownerDocument) → {Object}

Parameters:
Name Type Description
ownerDocument Object The owner document of the generated XML element.
Source:
Returns:
The XML DOM object for this matching.
Type
Object

toXmlString() → {String}

Source:
Returns:
The XML document for this matching.
Type
String