org.netbeans.modules.xml.xdm.diff
Class Change
java.lang.Object
org.netbeans.modules.xml.xdm.diff.Difference
org.netbeans.modules.xml.xdm.diff.Change
public class Change
- extends Difference
This class represents node change between 2 DOM tree
Change
public Change(NodeInfo.NodeType nodeType,
List<Node> ancestors1,
List<Node> ancestors2,
Node n1,
Node n2,
int n1Pos,
int n2Pos,
List<Change.Type> changes)
- Creates a new instance of DiffEvent
getAttrChanges
public List<Change.AttributeDiff> getAttrChanges()
addAttrChanges
public void addAttrChanges(Change.AttributeDiff attrDif)
removeAttrChanges
public void removeAttrChanges(Change.AttributeDiff attrDif)
isTokenChanged
public boolean isTokenChanged()
isAttributeChanged
public boolean isAttributeChanged()
- Returns:
- true if attribute list changes or attribute tokens change.
isPositionChanged
public boolean isPositionChanged()
setNewParent
public void setNewParent(Node parent2)
- Specified by:
setNewParent in class Difference
getNewParent
public Node getNewParent()
- Specified by:
getNewParent in class Difference
getNewAncestors
public List<Node> getNewAncestors()
- Specified by:
getNewAncestors in class Difference
- Returns:
- new path from parent to root.
isValid
public boolean isValid()
toString
public String toString()
- Overrides:
toString in class Object