| net.sf.saxon.sort.CollationURIResolver
All known Subclasses: net.sf.saxon.sort.StandardCollationURIResolver,
CollationURIResolver | public interface CollationURIResolver extends Serializable(Code) | | A CollationURIResolver accepts a collation name as input, and returns
a collation (represented by a Comparator) as output. A CollationURIResolver
can be registered with the Configuration (or with the TransformerFactory)
to resolve all collation URIs used in a stylesheet or query.
|
Method Summary | |
public Comparator | resolve(String relativeURI, String baseURI, Configuration config) Resolve a collation URI (expressed as a string) and return
the corresponding collation.
Parameters: relativeURI - the collation URI as written in the query or stylesheet Parameters: baseURI - The base URI of the static context where the collation URIappears. |
resolve | public Comparator resolve(String relativeURI, String baseURI, Configuration config)(Code) | | Resolve a collation URI (expressed as a string) and return
the corresponding collation.
Parameters: relativeURI - the collation URI as written in the query or stylesheet Parameters: baseURI - The base URI of the static context where the collation URIappears. The base URI is available only in cases where the collation URI is resolvedat compile time; in cases where the collation URI is not resolved until executiontime (typically because it is supplied as an expression rather than as a string literal)this parameter is currently set to null. Parameters: config - The configuration. Provided in case the collation URI resolverneeds it. a Comparator, representing the collation to be used. Note that althoughany Comparator may be returned, functions such as contains() that need to breaka string into its collation units will work only if the returned Comparatoris a java.text.Collator. If the Collation URI cannot be resolved, return null.Note that unlike the JAXP URIResolver, returning null does not cause the defaultCollationURIResolver to be invoked; if this is required, the user-written CollationURIResolvershould explicitly instantiate and invoke the StandardCollationURIResolver beforereturning null. since: 8.5 (this interface is new in Saxon 8.5 and may be revised in the light of since: experience) |
|
|