org.netbeans.modules.xml.xdm/1 1.19.0 1

org.netbeans.modules.xml.xdm.diff
Class Add

java.lang.Object
  extended by org.netbeans.modules.xml.xdm.diff.Difference
      extended by org.netbeans.modules.xml.xdm.diff.Add

public class Add
extends Difference

This class represents element add between 2 DOM tree


Constructor Summary
Add(NodeInfo.NodeType nodeType, List<Node> ancestors1, List<Node> ancestors2, Node n, int pos)
          Creates a new instance of DiffEvent
 
Method Summary
 List<Node> getNewAncestors()
           
 Node getNewParent()
           
 void setNewParent(Node p)
           
 String toString()
           
 
Methods inherited from class org.netbeans.modules.xml.xdm.diff.Difference
getNewNodeInfo, getNodeType, getOldNodeInfo
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Add

public Add(NodeInfo.NodeType nodeType,
           List<Node> ancestors1,
           List<Node> ancestors2,
           Node n,
           int pos)
Creates a new instance of DiffEvent

Method Detail

getNewAncestors

public List<Node> getNewAncestors()
Specified by:
getNewAncestors in class Difference
Returns:
new path from parent to root.

setNewParent

public void setNewParent(Node p)
Specified by:
setNewParent in class Difference

getNewParent

public Node getNewParent()
Specified by:
getNewParent in class Difference

toString

public String toString()
Overrides:
toString in class Object

org.netbeans.modules.xml.xdm/1 1.19.0 1

Built on May 25 2012.  |  Portions Copyright 1997-2012 Oracle. All rights reserved.