Class XMLComparer
- java.lang.Object
-
- org.eclipse.persistence.platform.xml.XMLComparer
-
public class XMLComparer extends java.lang.Object
This class is used to compare if two DOM nodes are equal.
-
-
Constructor Summary
Constructors Constructor Description XMLComparer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getIgnoreElementName()
protected boolean
isAttributeEqual(org.w3c.dom.Attr control, org.w3c.dom.Attr test)
boolean
isIgnoreOrder()
boolean
isNodeEqual(org.w3c.dom.Node control, org.w3c.dom.Node test)
Compare two DOM nodes.void
setIgnoreElementName(java.lang.String ignoreElementName)
void
setIgnoreOrder(boolean ignoreOrder)
-
-
-
Method Detail
-
isNodeEqual
public boolean isNodeEqual(org.w3c.dom.Node control, org.w3c.dom.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.
-
isAttributeEqual
protected boolean isAttributeEqual(org.w3c.dom.Attr control, org.w3c.dom.Attr test)
-
isIgnoreOrder
public boolean isIgnoreOrder()
-
setIgnoreOrder
public void setIgnoreOrder(boolean ignoreOrder)
-
getIgnoreElementName
public java.lang.String getIgnoreElementName()
-
setIgnoreElementName
public void setIgnoreElementName(java.lang.String ignoreElementName)
-
-