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
public class CollectionFn extends SystemFunction implements Callable
Implement the fn:collection() function. This is responsible for calling the registeredCollectionFinder
. For the effect of the default system-supplied CollectionFinder, seeStandardCollectionFinder
-
-
Field Summary
Fields Modifier and Type Field Description static ResourceCollection
EMPTY_COLLECTION
An empty collectionstatic java.lang.String
EMPTY_COLLECTION_URI
URI representing a collection that is always empty, regardless of any collection URI resolver
-
Constructor Summary
Constructors Constructor Description CollectionFn()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Sequence
call(XPathContext context, Sequence[] arguments)
Dynamic call on collection() functionint
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 Detail
-
EMPTY_COLLECTION_URI
public static java.lang.String EMPTY_COLLECTION_URI
URI representing a collection that is always empty, regardless of any collection URI resolver
-
EMPTY_COLLECTION
public static final ResourceCollection EMPTY_COLLECTION
An empty collection
-
-
Method Detail
-
getSpecialProperties
public int getSpecialProperties(Expression[] arguments)
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
-
call
public Sequence call(XPathContext context, Sequence[] arguments) throws XPathException
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
-
-