org.eclipse.persistence.platform.xml
Class XMLComparer

java.lang.Object
  extended by org.eclipse.persistence.platform.xml.XMLComparer

public class XMLComparer
extends Object

This class is used to compare if two DOM nodes are equal.


Constructor Summary
XMLComparer()
           
 
Method Summary
 boolean isIgnoreOrder()
           
 boolean isNodeEqual(Node control, Node test)
          Compare two DOM nodes.
 void setIgnoreOrder(boolean ignoreOrder)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XMLComparer

public XMLComparer()
Method Detail

isNodeEqual

public boolean isNodeEqual(Node control,
                           Node test)
Compare two DOM nodes.

Parameters:
control - The first node in the comparison.
test - The second node in the comparison.
Returns:
Return true if the nodes are equal, else false.

isIgnoreOrder

public boolean isIgnoreOrder()

setIgnoreOrder

public void setIgnoreOrder(boolean ignoreOrder)