Package net.sf.saxon.resource
Class CollectionURIResolverWrapper
java.lang.Object
net.sf.saxon.resource.CollectionURIResolverWrapper
- All Implemented Interfaces:
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 Summary
ConstructorsConstructorDescriptionCreate a wrapper for a CollectionURIResolver -
Method Summary
Modifier and TypeMethodDescriptionfindCollection(XPathContext context, String collectionURI) Locate the collection of resources corresponding to a collection URI.
-
Constructor Details
-
CollectionURIResolverWrapper
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:CollectionFinderLocate the collection of resources corresponding to a collection URI.- Specified by:
findCollectionin interfaceCollectionFinder- Parameters:
context- The XPath dynamic evaluation contextcollectionURI- 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
-