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

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

java.lang.Object
  extended by org.netbeans.modules.xml.xdm.diff.Difference
Direct Known Subclasses:
Add, Change, Delete

public abstract class Difference
extends Object

This class represents diff between 2 elements of 2 XML documents


Constructor Summary
Difference(NodeInfo.NodeType nodeType, List<Node> ancestors1, List<Node> ancestors2, Node n1, Node n2, int n1Pos, int n2Pos)
          Creates a new instance of DiffEvent
 
Method Summary
abstract  List<Node> getNewAncestors()
           
 NodeInfo getNewNodeInfo()
           
abstract  Node getNewParent()
           
 NodeInfo.NodeType getNodeType()
           
 NodeInfo getOldNodeInfo()
           
abstract  void setNewParent(Node n)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Difference

public Difference(NodeInfo.NodeType nodeType,
                  List<Node> ancestors1,
                  List<Node> ancestors2,
                  Node n1,
                  Node n2,
                  int n1Pos,
                  int n2Pos)
Creates a new instance of DiffEvent

Method Detail

getNodeType

public NodeInfo.NodeType getNodeType()

getOldNodeInfo

public NodeInfo getOldNodeInfo()

getNewNodeInfo

public NodeInfo getNewNodeInfo()
Returns:
info on added node.

getNewAncestors

public abstract List<Node> getNewAncestors()
Returns:
new path from parent to root.

setNewParent

public abstract void setNewParent(Node n)

getNewParent

public abstract Node getNewParent()

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

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