Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » cursor » [javadoc | source]
org.apache.xmlbeans.samples.cursor
public static final class: XmlSort.QNameComparator [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.samples.cursor.XmlSort$QNameComparator

All Implemented Interfaces:
    Comparator

Implements a java.util.Comparator for comparing QNamevalues. The namespace URIs are compared first and if they are equal, the local parts are compared.

The constructor accepts an argument indicating whether the comparison order is the same as the lexicographic order of the strings or the reverse.
Field Summary
public static final  int ASCENDING     
public static final  int DESCENDING     
Constructor:
 public QNameComparator(int order) 
Method from org.apache.xmlbeans.samples.cursor.XmlSort$QNameComparator Summary:
compare
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.samples.cursor.XmlSort$QNameComparator Detail:
 public int compare(Object o,
    Object o1)