Package net.sf.saxon.resource
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 Summary
Constructors Constructor Description CollectionURIResolverWrapper(CollectionURIResolver cr)Create a wrapper for a CollectionURIResolver
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ResourceCollectionfindCollection(XPathContext context, String collectionURI)Locate the collection of resources corresponding to a collection URI.CollectionURIResolvergetCollectionURIResolver()
-
-
-
Constructor Detail
-
CollectionURIResolverWrapper
public CollectionURIResolverWrapper(CollectionURIResolver cr)
Create a wrapper for a CollectionURIResolver- Parameters:
cr- the CollectionURIResolver
-
-
Method Detail
-
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
public CollectionURIResolver getCollectionURIResolver()
-
-