public class StandardCollationURIResolver extends java.lang.Object implements CollationURIResolver
Constructor and Description |
---|
StandardCollationURIResolver()
The class is normally used as a singleton, but the constructor is public to allow the class to be named
as a value of the configuration property COLLATION_URI_RESOLVER
|
Modifier and Type | Method and Description |
---|---|
static StandardCollationURIResolver |
getInstance()
Return the singleton instance of this class
|
StringCollator |
resolve(java.lang.String uri,
Configuration config)
Create a collator from a parameterized URI
|
public StandardCollationURIResolver()
public static StandardCollationURIResolver getInstance()
public StringCollator resolve(java.lang.String uri, Configuration config) throws XPathException
resolve
in interface CollationURIResolver
uri
- the collation URI as written in the query or stylesheet, after resolving
against the base URI where necessaryconfig
- The configuration. Provided in case the collation URI resolver
needs it.XPathException
- if the form of the URI is recognized, but if it is not valid,
for example because it is not supported in this environment. In this case of the UCA collation,
this exception is thrown when there are invalid parameters and fallback=no is specified.Copyright (c) 2004-2018 Saxonica Limited. All rights reserved.