Class CollectionURIResolverWrapper

java.lang.Object
net.sf.saxon.resource.CollectionURIResolverWrapper
All Implemented Interfaces:
CollectionFinder

public class CollectionURIResolverWrapper extends Object implements CollectionFinder
The class bridges the old CollectionURIResolver interface to the new CollectionFinder interface; it means that existing CollectionURIResolver implementations can continue to be used with Saxon 9.7.
  • Constructor Details

    • CollectionURIResolverWrapper

      public CollectionURIResolverWrapper(CollectionURIResolver cr)
      Create a wrapper for a CollectionURIResolver
      Parameters:
      cr - the CollectionURIResolver
  • Method Details

    • findCollection

      public ResourceCollection findCollection(XPathContext context, String collectionURI) throws XPathException
      Description copied from interface: CollectionFinder
      Locate the collection of resources corresponding to a collection URI.
      Specified by:
      findCollection in interface CollectionFinder
      Parameters:
      context - The XPath dynamic evaluation context
      collectionURI - The collection URI: an absolute URI, formed by resolving the argument supplied to the fn:collection or fn:uri-collection against the static base URI
      Returns:
      a ResourceCollection object representing the resources in the collection identified by this collection URI. Result should not be null.
      Throws:
      XPathException - if the collection was not found
    • getCollectionURIResolver

      public CollectionURIResolver getCollectionURIResolver()