Home » xmlbeans-2.5.0-src » org.apache.xmlbeans.samples » cursor » [javadoc | source]
org.apache.xmlbeans.samples.cursor
public final class: XmlSort [javadoc | source]
java.lang.Object
   org.apache.xmlbeans.samples.cursor.XmlSort
Nested Class Summary:
public static final class  XmlSort.QNameComparator  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. 

Method from org.apache.xmlbeans.samples.cursor.XmlSort Summary:
main,   sort
Methods from java.lang.Object:
clone,   equals,   finalize,   getClass,   hashCode,   notify,   notifyAll,   toString,   wait,   wait,   wait
Method from org.apache.xmlbeans.samples.cursor.XmlSort Detail:
 public static  void main(String[] args) 
    Receives an XML element instance and sorts the children of this element in lexicographical (by default) order.
 public static  void sort(XmlObject element,
    Comparator comp) 
    Sorts the children of element according to the order indicated by the comparator.