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

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

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

public class Change
extends Difference

This class represents node change between 2 DOM tree


Nested Class Summary
 class Change.AttributeAdd
           
 class Change.AttributeChange
           
 class Change.AttributeDelete
           
 class Change.AttributeDiff
           
static class Change.Type
           
 
Constructor Summary
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
 
Method Summary
 void addAttrChanges(Change.AttributeDiff attrDif)
           
 List<Change.AttributeDiff> getAttrChanges()
           
 List<Node> getNewAncestors()
           
 Node getNewParent()
           
 boolean isAttributeChanged()
           
 boolean isPositionChanged()
           
 boolean isTokenChanged()
           
 boolean isValid()
           
 void removeAttrChanges(Change.AttributeDiff attrDif)
           
 void setNewParent(Node parent2)
           
 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

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

Method Detail

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

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

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