Class UriCollection

All Implemented Interfaces:
Serializable, SourceLocator, LocationProvider, SaxonLocator, CallableExpression, InstructionInfo, Locator

public class UriCollection extends SystemFunction implements CallableExpression
Implement the fn:uri-collection() function (new in XQuery 3.0/XSLT 3.0). This is responsible for calling the registered CollectionURIResolver. For the effect of the default system-supplied CollectionURIResolver, see StandardCollectionURIResolver
See Also:
  • Constructor Details

    • UriCollection

      public UriCollection()
  • Method Details

    • getStaticBaseURI

      public String getStaticBaseURI()
    • checkArguments

      public void checkArguments(ExpressionVisitor visitor) throws XPathException
      Description copied from class: SystemFunction
      Method called during static type checking
      Overrides:
      checkArguments in class SystemFunction
      Parameters:
      visitor - the expression visitor
      Throws:
      XPathException - if the arguments are incorrect
    • preEvaluate

      public Expression preEvaluate(ExpressionVisitor visitor)
      preEvaluate: this method suppresses compile-time evaluation by doing nothing
      Overrides:
      preEvaluate in class FunctionCall
      Parameters:
      visitor - an expression visitor
      Returns:
      the result of the early evaluation, or the original expression, or potentially a simplified expression
    • iterate

      public SequenceIterator iterate(XPathContext context) throws XPathException
      Iterate over the contents of the collection
      Overrides:
      iterate in class Expression
      Parameters:
      context - the dynamic context
      Returns:
      an iterator, whose items will always be nodes (typically but not necessarily document nodes)
      Throws:
      XPathException
    • call

      public SequenceIterator call(SequenceIterator[] arguments, XPathContext context) throws XPathException
      Evaluate the expression
      Specified by:
      call in interface CallableExpression
      Parameters:
      arguments - the values of the arguments, supplied as SequenceIterators
      context - the dynamic evaluation context
      Returns:
      the result of the evaluation, in the form of a SequenceIterator
      Throws:
      XPathException - if a dynamic error occurs during the evaluation of the expression