net.sf.xmlmatcher.tools
Class ElementsComparator
java.lang.Object
net.sf.xmlmatcher.tools.ElementsComparator
- All Implemented Interfaces:
- java.util.Comparator<org.w3c.dom.Element>
public final class ElementsComparator
- extends java.lang.Object
- implements java.util.Comparator<org.w3c.dom.Element>
Compare two Elements based on their full tag names
Method Summary |
int |
compare(org.w3c.dom.Element a,
org.w3c.dom.Element b)
|
static int |
compareElements(org.w3c.dom.Element ea,
org.w3c.dom.Element eb)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
equals |
INSTANCE
public static final ElementsComparator INSTANCE
ElementsComparator
public ElementsComparator()
compare
public int compare(org.w3c.dom.Element a,
org.w3c.dom.Element b)
- Specified by:
compare
in interface java.util.Comparator<org.w3c.dom.Element>
compareElements
public static int compareElements(org.w3c.dom.Element ea,
org.w3c.dom.Element eb)
Copyright © 2007. All Rights Reserved.