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 ResourceCollection
An empty collectionstatic String
URI 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 String
getAbsoluteCollectionURI
(String baseUri, String href, XPathContext context) int
getSpecialProperties
(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, typeCheckCaller
Methods inherited from class net.sf.saxon.functions.AbstractFunction
atomize, deepEqual40, deepEquals, effectiveBooleanValue, getAnnotations, getUnicodeStringValue, isArray, isMap, makeNewContext, simplify, typeCheck
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface net.sf.saxon.om.FunctionItem
getGenre
Methods inherited from interface net.sf.saxon.om.GroundedValue
asIterable, concatenate, containsNode, materialize
Methods inherited from interface net.sf.saxon.om.Item
getLength, getStringValue, head, isStreamed, itemAt, iterate, reduce, subsequence
Methods 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:SystemFunction
Determine 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:
getSpecialProperties
in 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:
call
in 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
-