net.sf.saxon.sort
Class CollationFactory

java.lang.Object
  extended bynet.sf.saxon.sort.CollationFactory

public class CollationFactory
extends java.lang.Object

CollationFactory allows a Collation to be created given a set of parameters, or a URI containing those parameters.


Method Summary
static java.util.Comparator makeCollationFromURI(java.lang.String uri, Configuration config)
          Create a collator from a parameterized URI
static java.text.Collator makeUsingProperties(java.lang.String langAtt, java.lang.String strengthAtt, java.lang.String decompositionAtt)
          Make a collator with given properties
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

makeUsingProperties

public static java.text.Collator makeUsingProperties(java.lang.String langAtt,
                                                     java.lang.String strengthAtt,
                                                     java.lang.String decompositionAtt)
Make a collator with given properties

Parameters:
langAtt - the language
strengthAtt - the collation strength: primary, secondary, tertiary, or identical
decompositionAtt - whether strings are normalized into Unicode decomposed normal form: none, standard, or full
Returns:
the collator

makeCollationFromURI

public static java.util.Comparator makeCollationFromURI(java.lang.String uri,
                                                        Configuration config)
                                                 throws XPathException
Create a collator from a parameterized URI

Returns:
null if the collation URI is not suitable
Throws:
XPathException