net.sf.saxon.functions
public abstract class CollatingFunction extends SystemFunction
Field Summary | |
---|---|
protected XPathContext | conversionContext |
Method Summary | |
---|---|
void | checkArguments(StaticContext env) |
protected AtomicComparer | getAtomicComparer(int arg, XPathContext context)
Get a AtomicComparer that can be used to compare values |
protected Comparator | getCollator(int arg, XPathContext context)
Get a collator suitable for comparing strings. |
void | preEvaluateCollation(StaticContext env)
Pre-evaluate the collation argument if its value is known statically |
Parameters: arg the position of the argument (starting at 0) containing the collation name. If this argument was not supplied, the default collation is used context The dynamic evaluation context.
Parameters: arg The argument position (counting from zero) that holds the collation URI if present context The dynamic context
Returns: a Comparator, which will either be a java.text.Collator, or a CodepointCollator