StringCollator (original) (raw)

All Known Subinterfaces:

[SubstringMatcher](SubstringMatcher.html "interface in net.sf.saxon.lib")

All Known Implementing Classes:

[AlphanumericCollator](../expr/sort/AlphanumericCollator.html "class in net.sf.saxon.expr.sort"), [CaseFirstCollator](../expr/sort/CaseFirstCollator.html "class in net.sf.saxon.expr.sort"), [CodepointCollator](../expr/sort/CodepointCollator.html "class in net.sf.saxon.expr.sort"), [HTML5CaseBlindCollator](../expr/sort/HTML5CaseBlindCollator.html "class in net.sf.saxon.expr.sort"), [RuleBasedSubstringMatcher](../expr/sort/RuleBasedSubstringMatcher.html "class in net.sf.saxon.expr.sort"), [SimpleCollation](../expr/sort/SimpleCollation.html "class in net.sf.saxon.expr.sort"), [UcaCollatorUsingIcu](../../../../com/saxonica/expr/sort/UcaCollatorUsingIcu.html "class in com.saxonica.expr.sort"), [UcaCollatorUsingJava](../expr/sort/UcaCollatorUsingJava.html "class in net.sf.saxon.expr.sort")


public interface StringCollator

This interface represents a "collation" as defined in XPath, that is, a set of rules for comparing strings

Note: an implementation of this interface that wraps a Java RuleBasedCollator is available: see RuleBasedSubstringMatcher.

boolean
Compare two strings for equality.
int
Get a collation key for a String.
default boolean
Test if a supplied string compares equal to the empty string