public interface ResourceCollection
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getCollectionURI()
Get the URI of the collection
|
java.util.Iterator<? extends Resource> |
getResources(XPathContext context)
Get the resources in the collection.
|
java.util.Iterator<java.lang.String> |
getResourceURIs(XPathContext context)
Get the URIs of the resources in the collection.
|
boolean |
isStable(XPathContext context)
Ask whether the collection is stable: in this case Saxon will retain the contents of the
collection in memory, and will not make a second request on the CollectionFinder for the
same collection URI.
|
boolean |
stripWhitespace(SpaceStrippingRule rules)
Supply information about the whitespace stripping rules that apply to this collection.
|
java.lang.String getCollectionURI()
java.util.Iterator<java.lang.String> getResourceURIs(XPathContext context) throws XPathException
UnparsedTextURIResolver
(in the case of unparsed text and JSON resources), etc.context
- the XPath evaluation contextXPathException
- in the event of any error (for example, if the collection URI
is not recognized)java.util.Iterator<? extends Resource> getResources(XPathContext context) throws XPathException
context
- the XPath evaluation contextResource
.XPathException
- in the event of any error (for example, if the collection URI
is not recognized)boolean isStable(XPathContext context)
context
- the XPath dynamic evaluation context (in case the decision is context dependent)boolean stripWhitespace(SpaceStrippingRule rules)
rules
- the space-stripping rules that apply to this collection, derived from
the xsl:strip-space and xsl:preserve-space declarations in the stylesheet
package containing the call to the collection() function.Copyright (c) 2004-2020 Saxonica Limited. All rights reserved.