net.sf.saxon.sort
public class NamedCollation extends Object implements StringCollator
Constructor Summary | |
---|---|
NamedCollation(String uri, Comparator collation)
Create a NamedCollation |
Method Summary | |
---|---|
boolean | comparesEqual(String s1, String s2)
Compare two strings for equality. |
int | compareStrings(String o1, String o2)
Compares its two arguments for order. |
Comparator | getCollation()
Get the underlying comparator |
Object | getCollationKey(String s)
Get a collation key for two Strings. |
String | getUri()
Get the URI identifying the collation |
void | setCollation(Comparator collation)
Set the underlying comparator |
void | setUri(String uri)
Set the URI identifying the collation |
Parameters: uri the name of the collation collation the Comparator that does the actual string comparison
Parameters: s1 the first string s2 the second string
Returns: true if and only if the strings are considered equal,
Parameters: o1 the first object to be compared. o2 the second object to be compared.
Returns: a negative integer, zero, or a positive integer as the first argument is less than, equal to, or greater than the second.
Throws: ClassCastException if the arguments' types prevent them from being compared by this Comparator.
Returns: the underlying comparator
Parameters: collation the underlying comparator
Parameters: uri the collation URI