org.netbeans.modules.xml.xdm.diff
Class Add
java.lang.Object
org.netbeans.modules.xml.xdm.diff.Difference
org.netbeans.modules.xml.xdm.diff.Add
public class Add
- extends Difference
This class represents element add between 2 DOM tree
Add
public Add(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n,
int pos)
- Creates a new instance of DiffEvent
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