Class CollectionFn

    • 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
    • Constructor Detail

      • CollectionFn

        public CollectionFn()
    • 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 class SystemFunction
        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 interface Callable
        Parameters:
        context - the dynamic evaluation context
        arguments - the values of the arguments, supplied as Sequences.
        Returns:
        the sequence of nodes forming the collection
        Throws:
        XPathException - if a dynamic error occurs