Package org.eclipse.wst.xml.xpath2.api


org.eclipse.wst.xml.xpath2.api
Class CollationProvider



public class CollationProvider
extends 
Service provider interface for looking up collations from within the dynamic context. Definition from the XPath2 specification: A collation is a specification of the manner in which strings and URIs are compared and, by extension, ordered. For a more complete definition of collation, see [XQuery 1.0 and XPath 2.0 Functions and Operators (Second Edition)].


Field Summary

public static java.lang.StringCODEPOINT_COLLATION
     The default collation which is guaranteed to always be implemented

Method Summary

public java.util.ComparatorgetCollation(java.lang.String name)
     Gets the named collator. W3C does not define collation names (yet?) so we are constrained to using an implementation-defined naming scheme.
public java.lang.StringgetDefaultCollation()
    

Field Detail

CODEPOINT_COLLATION

public static java.lang.String CODEPOINT_COLLATION

The default collation which is guaranteed to always be implemented

Methods Detail

getCollation

public java.util.Comparator getCollation(java.lang.String name)

Gets the named collator. W3C does not define collation names (yet?) so we are constrained to using an implementation-defined naming scheme.

Parameters

name - A URI designating the collation to use

Returns

java.util.Comparator - The collation to use, or null if no such collation exists by this provider


getDefaultCollation

public java.lang.String getDefaultCollation()

Returns

java.lang.String