Package net.sf.saxon.ma.map
Class MapFunctionSet
java.lang.Object
net.sf.saxon.functions.registry.BuiltInFunctionSet
net.sf.saxon.ma.map.MapFunctionSet
- All Implemented Interfaces:
FunctionLibrary
Function signatures (and pointers to implementations) of the functions defined in the map
namespace in XPath 3.1 and 4.0
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of the proposed XPath 4.0 function map:build($sequence, $key, $value, $options) => map(*)static classImplementation of the XPath 3.1 function map:contains(Map, key) => booleanstatic classImplementation of the proposed 4.0 function map:empty(Map) => booleanstatic classImplementation of the proposed 4.0 function map:entries(Map) => map(*)*static classImplementation of the function map:entry(key, value) => Mapstatic classImplementation of the proposed XPath 4.0 function map:filter(Map, function(*)) => Mapstatic classImplementation of the XPath 3.1 function map:find(item()*, key) => arraystatic classImplementation of the function map:for-each(Map, Function) => item()*static classImplementation of the XPath 3.1 function map:get(Map, key) => valuestatic classImplementation of the proposed 4.0 function map:items(Map) => item()*static classImplementation of the XPath 3.1 function map:keys(Map) => atomicValue*static classImplementation of the function map:merge() => Map From 9.8, map:merge is also used to implement map constructors in XPath and the xsl:map instruction in XSLT.static classImplementation of the function map:put() => Mapstatic classImplementation of the XPath 3.1 function map:remove(Map, key) => valuestatic classImplementation of the extension function map:size(map) => integerstatic interfaceNested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.getDuplicatesCombiner(Map<String, GroundedValue> options, String defaultAction, String duplicatesErrorCode) static MapFunctionSetgetInstance(int version) Get the set of functions defined in the F&O spec in the "map" namespaceReturn the namespace URI for the functions local to this function set.Methods inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
bind, copy, field, getFunctionDetails, getFunctionItem, importFunctionSet, isAvailable, makeFunction, register, register, registerVariadicMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sf.saxon.functions.FunctionLibrary
setConfiguration
-
Field Details
-
KVP_TYPE_INEXTENSIBLE
-
KVP_TYPE_EXTENSIBLE
-
-
Method Details
-
getInstance
Get the set of functions defined in the F&O spec in the "map" namespace- Parameters:
version- the XPath version (eg 31, 40). Currently any version less than 40 is treated as 31, and any version greater than 40 is treated as 40.- Returns:
- the function library
-
getDuplicatesCombiner
public static MapFunctionSet.OnDuplicatesAction getDuplicatesCombiner(Map<String, GroundedValue> options, String defaultAction, String duplicatesErrorCode) throws XPathException- Throws:
XPathException
-
getNamespace
Description copied from class:BuiltInFunctionSetReturn the namespace URI for the functions local to this function set.- Overrides:
getNamespacein classBuiltInFunctionSet- Returns:
- the namespace URI of the functions local to this function set. Note that functions imported from another function set may have a different namespace URI.
-
getConventionalPrefix
Description copied from class:BuiltInFunctionSetReturn a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefixin classBuiltInFunctionSet- Returns:
- the string "fn"
-