java.io.Serializable
, javax.xml.transform.SourceLocator
, Container
, Expression
, InstructionInfoProvider
public abstract class CollatingFunction extends SystemFunction
Modifier and Type | Field | Description |
---|---|---|
protected java.util.Comparator |
collation |
locationId, staticProperties
EVALUATE_METHOD, ITERATE_METHOD, PROCESS_METHOD
argument
operation
Constructor | Description |
---|---|
CollatingFunction() |
Modifier and Type | Method | 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.
|
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
checkArgumentCount, getArguments, getDisplayName, getFunctionNameCode, getNumberOfArguments, iterateSubExpressions, optimize, preEvaluate, promote, replaceSubExpression, setArguments, setFunctionNameCode, simplify, simplifyArguments, typeCheck
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addContextDocumentArgument, computeCardinality, computeSpecialProperties, display, getDetails, getErrorCodeForTypeErrors, getItemType, getRequiredType, main, makeSystemFunction, setDetails, useContextItemAsDefault
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