Package org.eclipse.wst.xml.xpath2.api
public class CollationProvider extendsService 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.String | CODEPOINT_COLLATION The default collation which is guaranteed to always be implemented |
Method Summary | |
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. |
public java.lang.String | getDefaultCollation() |
Field Detail |
public static java.lang.String CODEPOINT_COLLATION
The default collation which is guaranteed to always be implemented |
Methods Detail |
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.
name
- A URI designating the collation to use
java.util.Comparator
- The collation to use, or null if no such collation exists by this provider
public java.lang.String getDefaultCollation()
java.lang.String