net.sf.xmlmatcher.tools
Class ElementsComparator

java.lang.Object
  extended by 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


Field Summary
static ElementsComparator INSTANCE
           
 
Constructor Summary
ElementsComparator()
           
 
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
 

Field Detail

INSTANCE

public static final ElementsComparator INSTANCE
Constructor Detail

ElementsComparator

public ElementsComparator()
Method Detail

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.