com.jaxfront.core.util
Class XPathSorter

java.lang.Object
  extended by com.jaxfront.core.util.XPathSorter
All Implemented Interfaces:
Sortable

public class XPathSorter
extends java.lang.Object
implements Sortable

Compares to xpaths according to its deepness and the fact if an xpath is addressing a global type or not.

Version:
1.60

Constructor Summary
XPathSorter(java.lang.String rootName)
           
 
Method Summary
 boolean compare(java.lang.Object a, java.lang.Object b)
          Compares two objects and returns true if they are equal.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XPathSorter

public XPathSorter(java.lang.String rootName)
Method Detail

compare

public boolean compare(java.lang.Object a,
                       java.lang.Object b)
Description copied from interface: Sortable
Compares two objects and returns true if they are equal.

Specified by:
compare in interface Sortable
Returns:
true if the compared objects are equal, false otherwise