org.netbeans.modules.xml.xam.dom
Class ChangeInfo

java.lang.Object
  extended by org.netbeans.modules.xml.xam.dom.ChangeInfo

public class ChangeInfo
extends java.lang.Object

Author:
Nam Nguyen

Constructor Summary
ChangeInfo(org.w3c.dom.Element parent, org.w3c.dom.Node changed, boolean isDomainElement, java.util.List<org.w3c.dom.Element> rootToParent, java.util.List<org.w3c.dom.Node> otherNodes)
          Creates change info.
 
Method Summary
 org.w3c.dom.Node getActualChangedNode()
           
 org.w3c.dom.Element getChangedElement()
           
 org.w3c.dom.Node getChangedNode()
           
 java.util.List<org.w3c.dom.Node> getOtherNonDomainElementNodes()
           
 org.w3c.dom.Element getParent()
           
 DocumentComponent getParentComponent()
           
 java.util.List<org.w3c.dom.Element> getParentToRootPath()
           
 java.util.List<org.w3c.dom.Element> getRootToParentPath()
           
 boolean isAdded()
           
 boolean isDomainElement()
           
 boolean isDomainElementAdded()
           
 void markNonDomainChildAsChanged()
           
 void markParentAsChanged()
           
 void setAdded(boolean v)
           
 void setDomainElement(boolean v)
           
 void setParentComponent(DocumentComponent component)
           
 void setRootToParentPath(java.util.List<org.w3c.dom.Element> path)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ChangeInfo

public ChangeInfo(org.w3c.dom.Element parent,
                  org.w3c.dom.Node changed,
                  boolean isDomainElement,
                  java.util.List<org.w3c.dom.Element> rootToParent,
                  java.util.List<org.w3c.dom.Node> otherNodes)
Creates change info.

Parameters:
parent - parent node of changed
changed - added/removed domain element or first non-domain change node.
isDomainElement - is the changed node a domain element.
rootToParent - path from root to parent node, inclusively.
otherNodes - list of other nodes that are not domain elements beside the changed nodes.
Method Detail

getParent

public org.w3c.dom.Element getParent()

getChangedNode

public org.w3c.dom.Node getChangedNode()

getChangedElement

public org.w3c.dom.Element getChangedElement()

isDomainElement

public boolean isDomainElement()

setDomainElement

public void setDomainElement(boolean v)

setRootToParentPath

public void setRootToParentPath(java.util.List<org.w3c.dom.Element> path)

getRootToParentPath

public java.util.List<org.w3c.dom.Element> getRootToParentPath()

getParentToRootPath

public java.util.List<org.w3c.dom.Element> getParentToRootPath()

isDomainElementAdded

public boolean isDomainElementAdded()

setAdded

public void setAdded(boolean v)

isAdded

public boolean isAdded()

markParentAsChanged

public void markParentAsChanged()

setParentComponent

public void setParentComponent(DocumentComponent component)

getParentComponent

public DocumentComponent getParentComponent()

getOtherNonDomainElementNodes

public java.util.List<org.w3c.dom.Node> getOtherNonDomainElementNodes()

getActualChangedNode

public org.w3c.dom.Node getActualChangedNode()

markNonDomainChildAsChanged

public void markNonDomainChildAsChanged()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object