public abstract class CollatingFunction extends SystemFunction
Modifier and Type | Field and Description |
---|---|
protected java.util.Comparator |
collation |
operation
argument
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
Constructor and Description |
---|
CollatingFunction() |
Modifier and Type | Method and Description |
---|---|
void |
checkArguments(StaticContext env)
Method called during static type checking
|
protected GenericAtomicComparer |
getAtomicComparer(int arg,
XPathContext context)
Get a GenericAtomicComparer that can be used to compare values
|
protected java.util.Comparator |
getCollator(int arg,
XPathContext context)
Get a collator suitable for comparing strings.
|
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
adoptChildExpression, checkPermittedContents, computeDependencies, computeStaticProperties, doPromotion, dynamicError, effectiveBooleanValue, evaluateAsString, evaluateItem, getCardinality, getColumnNumber, getConstructType, getDependencies, getExecutable, getHostLanguage, getImplementationMethod, getInstructionInfo, getIntrinsicDependencies, getLineNumber, getLocationId, getLocationProvider, getParentExpression, getPublicId, getSlotsUsed, getSpecialProperties, getSystemId, hasBadParentPointer, iterate, markTailFunctionCalls, process, resetStaticProperties, setLocationId, setParentExpression, setParentExpression, suppressValidation, typeError
public void checkArguments(StaticContext env) throws XPathException
SystemFunction
checkArguments
in class SystemFunction
XPathException
protected GenericAtomicComparer getAtomicComparer(int arg, XPathContext context) throws XPathException
arg
- the position of the argument (starting at 0) containing the collation name.
If this argument was not supplied, the default collation is usedcontext
- The dynamic evaluation context.XPathException
protected java.util.Comparator getCollator(int arg, XPathContext context) throws XPathException
arg
- The argument position (counting from zero) that holds the collation
URI if presentcontext
- The dynamic contextXPathException