Class MapUntypedContains

  • All Implemented Interfaces:
    Callable, Function, GroundedValue, Item, Sequence

    public class MapUntypedContains
    extends SystemFunction
    Implementation of an internal function map:untyped-contains(Map, key) => boolean, which is like map:contains except that if the supplied key is untyped atomic, it is converted to all the possible types present in the map and returns true if the key after conversion is present. In addition, if the supplied key is NaN then the result is always false.
    • Constructor Detail

      • MapUntypedContains

        public MapUntypedContains()
    • Method Detail

      • call

        public Sequence call​(XPathContext context,
                             Sequence[] arguments)
                      throws XPathException
        Description copied from interface: Function
        Invoke the function
        context - the XPath dynamic evaluation context
        arguments - the actual arguments to be supplied
        the result of invoking the function
        XPathException - if a dynamic error occurs within the function