XQuery Function Documentation
http://www.w3.org/2005/xpath-functions/map
java:org.exist.xquery.functions.map.MapModule
Functions that operate on maps
map:contains
Tests whether a supplied map contains an entry for a given key.
- Parameters:
-
$map The map $key The key to look up - Returns:
- xs:boolean
map:entry
Creates a map that contains a single entry (a key-value pair).
- Parameters:
-
$key The key $value* The associated value - Returns:
- map
map:for-each-entry
takes any map as its $input argument and applies the supplied function to each entry in the map, in implementation-dependent order; the result is the sequence obtained by concatenating the results of these function calls. The function supplied as $action takes two arguments. It is called supplying the key of the map entry as the first argument, and the associated value as the second argument.
- Parameters:
-
$input The map $action The function to be called for each entry - Returns:
- item()*
map:get
Returns the value associated with a supplied key in a given map.
- Parameters:
-
$map The map $key The key to look up - Returns:
- item()*
map:keys
Returns a sequence containing all the key values present in a map.
- Parameters:
-
$map The map - Returns:
- xs:anyAtomicType*
map:new
Constructs and returns an empty map whose collation is the default collation in the static context.
- Returns:
- map
map:new
Constructs and returns an empty map whose collation is the default collation in the static context.
- Parameters:
-
$maps* Existing maps to combine into the new map. - Returns:
- map
map:new
Constructs and returns an empty map whose collation is given in the second argument.
- Parameters:
-
$maps* Existing maps to combine into the new map. $collation The collation to use for the new map. - Returns:
- map
map:remove
Constructs a new map by removing an entry from an existing map.
- Parameters:
-
$map The map $key The key to remove - Returns:
- map