Package net.sf.saxon.functions
Class CollectionFn
java.lang.Object
net.sf.saxon.functions.AbstractFunction
net.sf.saxon.functions.SystemFunction
net.sf.saxon.functions.CollectionFn
- All Implemented Interfaces:
Callable,FunctionItem,GroundedValue,Item,Sequence
Implement the fn:collection() function. This is responsible for calling the
registered
CollectionFinder. For the effect of the default
system-supplied CollectionFinder, see StandardCollectionFinder-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ResourceCollectionAn empty collectionstatic StringURI representing a collection that is always empty, regardless of any collection URI resolver -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncall(XPathContext context, Sequence[] arguments) Dynamic call on collection() functionstatic StringgetAbsoluteCollectionURI(String baseUri, String href, XPathContext context) intgetSpecialProperties(Expression[] arguments) Determine the special properties of this function.Methods inherited from class net.sf.saxon.functions.SystemFunction
dependsOnContextItem, dynamicCall, equals, export, exportAdditionalArguments, exportAttributes, fixArguments, getArity, getCardinality, getContextNode, getDescription, getDetails, getElaborator, getErrorCodeForTypeErrors, getFunctionItemType, getFunctionName, getIntegerBounds, getNetCost, getOperandRoles, getRequiredType, getResultItemType, getResultItemType, getRetainedStaticContext, getStaticBaseUriString, getStreamerName, getUniStringArg, hashCode, importAttributes, isSequenceVariadic, isTrustedResultType, makeCall, makeFunction, makeFunction40, makeFunctionCall, makeOptimizedFunctionCall, resultIfEmpty, setArity, setDetails, setRetainedStaticContext, supplyTypeInformation, toShortString, toString, typeCheckCallerMethods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheckMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface net.sf.saxon.om.FunctionItem
getGenreMethods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materializeMethods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequenceMethods inherited from interface net.sf.saxon.om.Sequence
makeRepeatable
-
Field Details
-
EMPTY_COLLECTION_URI
URI representing a collection that is always empty, regardless of any collection URI resolver -
EMPTY_COLLECTION
An empty collection
-
-
Constructor Details
-
CollectionFn
public CollectionFn()
-
-
Method Details
-
getSpecialProperties
Description copied from class:SystemFunctionDetermine the special properties of this function. The general rule is that a system function call is non-creative unless more details are defined in a subclass.- Overrides:
getSpecialPropertiesin classSystemFunction- Parameters:
arguments- the actual arguments supplied in a call to the function- Returns:
- the properties
-
getAbsoluteCollectionURI
public static String getAbsoluteCollectionURI(String baseUri, String href, XPathContext context) throws XPathException - Throws:
XPathException
-
call
Dynamic call on collection() function- Specified by:
callin interfaceCallable- Parameters:
context- the dynamic evaluation contextarguments- the values of the arguments, supplied as Sequences.- Returns:
- the sequence of nodes forming the collection
- Throws:
XPathException- if a dynamic error occurs
-