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
public class MapFunctionSet extends BuiltInFunctionSet
Function signatures (and pointers to implementations) of the functions defined in the map namespace in XPath 3.1
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
MapFunctionSet.MapBuild
Implementation of the proposed XPath 4.0 function map:build($sequence, $key, $value, $combined) as xs:anyAtomicType) => map(*)static class
MapFunctionSet.MapContains
Implementation of the XPath 3.1 function map:contains(Map, key) => booleanstatic class
MapFunctionSet.MapEntries
Implementation of the proposed 4.0 function map:entries(Map) => map(*)*static class
MapFunctionSet.MapEntry
Implementation of the extension function map:entry(key, value) => Mapstatic class
MapFunctionSet.MapFilter
Implementation of the proposed XPath 4.0 function map:filter(Map, function(*)) => Mapstatic class
MapFunctionSet.MapFind
Implementation of the XPath 3.1 function map:find(item()*, key) => arraystatic class
MapFunctionSet.MapForEach
Implementation of the function map:for-each(Map, Function) => item()*static class
MapFunctionSet.MapGet
Implementation of the XPath 3.1 function map:get(Map, key) => valuestatic class
MapFunctionSet.MapKeys
Implementation of the XPath 3.1 function map:keys(Map) => atomicValue*static class
MapFunctionSet.MapMerge
Implementation 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 class
MapFunctionSet.MapOfPairs
Implementation of the function map:of-pairs() => Mapstatic class
MapFunctionSet.MapPair
Implementation of the proposed 4.0 function map:pair(key, value) => record(key, value)static class
MapFunctionSet.MapPairs
Implementation of the proposed 4.0 function map:pairs(Map) => record(key, value)*static class
MapFunctionSet.MapPut
Implementation of the extension function map:put() => Mapstatic class
MapFunctionSet.MapRemove
Implementation of the XPath 3.1 function map:remove(Map, key) => valuestatic class
MapFunctionSet.MapSize
Implementation of the extension function map:size(map) => integer-
Nested classes/interfaces inherited from class net.sf.saxon.functions.registry.BuiltInFunctionSet
BuiltInFunctionSet.Entry
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getConventionalPrefix()
Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.static MapFunctionSet
getInstance(int version)
Get the set of functions defined in the F&O spec in the "map" namespaceNamespaceUri
getNamespace()
Return 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, registerVariadic
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface net.sf.saxon.functions.FunctionLibrary
setConfiguration
-
-
-
-
Method Detail
-
getInstance
public static MapFunctionSet getInstance(int version)
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
-
getNamespace
public NamespaceUri getNamespace()
Description copied from class:BuiltInFunctionSet
Return the namespace URI for the functions local to this function set.- Overrides:
getNamespace
in 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
public java.lang.String getConventionalPrefix()
Description copied from class:BuiltInFunctionSet
Return a conventional prefix for use with this namespace, typically the prefix used in the documentation of these functions.- Overrides:
getConventionalPrefix
in classBuiltInFunctionSet
- Returns:
- the string "fn"
-
-