1 19 20 package org.netbeans.modules.xml.xdm.diff; 21 22 import java.util.List ; 23 import org.netbeans.modules.xml.xdm.nodes.Document; 24 import org.netbeans.modules.xml.xdm.nodes.Node; 25 26 31 public class Delete extends Difference { 32 33 34 public Delete(NodeInfo.NodeType nodeType, 35 List <Node> ancestors1, List <Node> ancestors2, Node n, int pos) { 36 super(nodeType, ancestors1, ancestors2, n, null, pos, -1); 37 } 38 39 public List <Node> getNewAncestors() { 40 return getOldNodeInfo().getNewAncestors(); 41 } 42 43 public void setNewParent(Node p) { 44 getOldNodeInfo().setNewParent(p); 45 } 46 47 public Node getNewParent() { 48 return getOldNodeInfo().getNewParent(); 49 } 50 51 public String toString() { 52 return "DELETE("+ getOldNodeInfo() + ")"; 53 } 54 } 55 | Popular Tags |