public static final class XmlSort.QNameComparator
extends java.lang.Object
implements java.util.Comparator<org.apache.xmlbeans.XmlCursor>
java.util.Comparator
for comparing QName
values.
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.Modifier and Type | Field and Description |
---|---|
static int |
ASCENDING |
static int |
DESCENDING |
Constructor and Description |
---|
QNameComparator(int order) |
Modifier and Type | Method and Description |
---|---|
int |
compare(org.apache.xmlbeans.XmlCursor cursor1,
org.apache.xmlbeans.XmlCursor cursor2) |
public static final int ASCENDING
public static final int DESCENDING
Copyright 2016 The Apache Software Foundation or its licensors, as applicable.