| |
|
| java.lang.Object org.netbeans.modules.xml.xdm.visitor.DefaultVisitor org.netbeans.modules.xml.xdm.visitor.MergeVisitor
MergeVisitor | public class MergeVisitor extends DefaultVisitor (Code) | | This class provides a way to merge two trees. A merge is defined as taking a
tree and muting this tree (firing events) to cause the tree to be the same
as the target tree. This allows the original tree to retain nodes which have
not been changed. A change is defined as having both the same syntax and
semantics. The current tree model preserves spacing where appropriate, so
this requires comparing spacing as well as semantics.
author: Chris Webster author: Vidhya Narayanan |
merge | public void merge(XDMModel model, Document newDoc)(Code) | | This method merges the currentModel and the given newDocument. Events
will be fired on currentModel.
Parameters: model - the model to merge the changes required to transformthe current document to something equivalent to newDocument. Parameters: newDoc - to replicate in the current model. |
visitNode | protected void visitNode(Node node)(Code) | | |
|
|
|