| 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||
java.lang.Objectnet.sf.saxon.sort.NamedCollation
public class NamedCollation
A StringCollator is used for comparing strings (Java String objects). The URI is retained along with the collation so that the collation can be reconstructed on demand, typically at run-time by compiled code which has access to the URI but not the collation object itself.
| Constructor Summary | |
|---|---|
NamedCollation(String uri,
               Comparator collation)
Create a NamedCollation  | 
|
| Method Summary | |
|---|---|
 int | 
compareStrings(String o1,
               String o2)
Compares its two arguments for order.  | 
 Comparator | 
getCollation()
Get the underlying comparator  | 
 Object | 
getCollationKey(String s,
                Platform platform)
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  | 
| Methods inherited from class java.lang.Object | 
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait | 
| Constructor Detail | 
|---|
public NamedCollation(String uri,
                      Comparator collation)
uri - the name of the collationcollation - the Comparator that does the actual string comparison| Method Detail | 
|---|
public int compareStrings(String o1,
                          String o2)
compareStrings in interface StringCollatoro1 - the first object to be compared.o2 - the second object to be compared.
ClassCastException - if the arguments' types prevent them from
                            being compared by this Comparator.public String getUri()
public void setUri(String uri)
uri - the collation URIpublic Comparator getCollation()
public void setCollation(Comparator collation)
collation - the underlying comparator
public Object getCollationKey(String s,
                              Platform platform)
getCollationKey in interface StringCollator
  | 
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||