public abstract class CollatingFunction extends SystemFunction
| Modifier and Type | Field and Description |
|---|---|
protected java.util.Comparator |
collation |
operationargumentlocationId, staticPropertiesEVALUATE_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, useContextItemAsDefaultcheckArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheckadoptChildExpression, 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, typeErrorpublic void checkArguments(StaticContext env) throws XPathException
SystemFunctioncheckArguments in class SystemFunctionXPathExceptionprotected 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.XPathExceptionprotected 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