Saxon.Api
Interface IResourceCollection
- All Known Implementing Classes
- ResourceCollection
-
public interface IResourceCollection
This interface defines a ResourceCollection. This class is used to map the URI of collection into a sequence of Resource objects. It is used to support the fn:collection() and fn:uri-collection() functions.
Method Summary |
|
---|---|
string | CollectionURI() Get the URI of the collection |
List<IResource> | GetResources(DynamicContext context) Get the resources in the collection. This supports the fn:collection() function. It is not required that all collections expose a set of resources in this way, or that the resources returned bear any particular relationship to the URIs returned by the getResourceURIs() method for the same collection URI. |
List<string> | GetResourceURIs(DynamicContext context) Get the URIs of the resources in the collection. This supports the fn:uri-collection() function.It is not required that all collections expose a list of URIs in this way, or that the URIs bear any particular relationship to the resources returned by the getResources() method for the same collection URI.The URIs that are returned should be suitable for passing to the registered URIResolver (in the case of XML resources), or the { @link UnparsedTextURIResolver } (in the case of unparsed text and JSON resources), etc. |
Method Detail
CollectionURI
GetResources
Get the resources in the collection. This supports the fn:collection() function. It is not required that all collections expose a set of resources in this way, or that the resources returned bear any particular relationship to the URIs returned by the getResourceURIs() method for the same collection URI.
Parameters:
context
- the XPath evaluation contextReturns:
Riesource
.GetResourceURIs
Get the URIs of the resources in the collection. This supports the fn:uri-collection() function.It is not required that all collections expose a list of URIs in this way, or that the URIs bear any particular relationship to the resources returned by the getResources() method for the same collection URI.The URIs that are returned should be suitable for passing to the registered URIResolver (in the case of XML resources), or the { @link UnparsedTextURIResolver } (in the case of unparsed text and JSON resources), etc.
Parameters:
context
- the XPath evaluation contextReturns:
Get the URI of the collection
Returns: