public class LuxURIResolver extends Object implements URIResolver
| Modifier and Type | Field and Description |
|---|---|
protected Evaluator |
evaluator |
protected String |
uriFieldName |
| Constructor and Description |
|---|
LuxURIResolver(URIResolver systemURIResolver,
Evaluator evaluator,
String uriFieldName) |
| Modifier and Type | Method and Description |
|---|---|
CachingDocReader |
getDocReader() |
net.sf.saxon.s9api.XdmNode |
getDocument(String uri)
Evaluator provides this method as an implementation of URIResolver so as to resolve uris in service of fn:doc().
|
LuxSearcher |
getSearcher() |
Source |
resolve(String href,
String base)
file: uri resolution is delegated to the system URI resolver.
|
protected final Evaluator evaluator
protected final String uriFieldName
public LuxURIResolver(URIResolver systemURIResolver, Evaluator evaluator, String uriFieldName)
systemURIResolver - resolver to use for file: urisevaluator - the evaluator to use to retrieve docs from the indexuriFieldName - the name of the URI fieldpublic Source resolve(String href, String base) throws TransformerException
resolve in interface URIResolverTransformerException - if the document is not foundpublic net.sf.saxon.s9api.XdmNode getDocument(String uri) throws TransformerException
CachingDocReader.uri - the uri of the document to retrieveIllegalStateException - if the resolver wasn't configured properly (has no searcher)TransformerException - or there was an IOException thrown by Lucene.NotFoundException - if the document is not found in the indexpublic LuxSearcher getSearcher()
public CachingDocReader getDocReader()
Copyright © 2013. All Rights Reserved.