Class XMLComparer
java.lang.Object
org.eclipse.persistence.platform.xml.XMLComparer
This class is used to compare if two DOM nodes are equal.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected boolean
isAttributeEqual
(Attr control, Attr test) boolean
boolean
isNodeEqual
(Node control, Node test) Compare two DOM nodes.void
setIgnoreOrder
(boolean ignoreOrder)
-
Constructor Details
-
XMLComparer
public XMLComparer()
-
-
Method Details
-
isNodeEqual
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.
-
isAttributeEqual
-
isIgnoreOrder
public boolean isIgnoreOrder() -
setIgnoreOrder
public void setIgnoreOrder(boolean ignoreOrder)
-