lux
Class Evaluator.LuxURIResolver
java.lang.Object
lux.Evaluator.LuxURIResolver
- All Implemented Interfaces:
- URIResolver
- Enclosing class:
- Evaluator
public class Evaluator.LuxURIResolver
- extends Object
- implements URIResolver
|
Method Summary |
Source |
resolve(String href,
String base)
Evaluator provides this method as an implementation of URIResolver so as to resolve uris in service of fn:doc(). |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Evaluator.LuxURIResolver
public Evaluator.LuxURIResolver()
resolve
public Source resolve(String href,
String base)
throws TransformerException
- Evaluator provides this method as an implementation of URIResolver so as to resolve uris in service of fn:doc().
file: uri resolution is delegated to the default resolver by returning null. lux: and other uris are all resolved
using the provided searcher. The lux: prefix is optional, e.g: the uris "lux:/hello.xml" and "/hello.xml"
are equivalent. Documents read from the index are numbered according to their Lucene docIDs, and retrieved
using the
CachingDocReader.
- Specified by:
resolve in interface URIResolver
- Throws:
IllegalStateException - if a search is attempted, but no searcher was provided
TransformerException - if the document is not found in the index, or there was an IOException
thrown by Lucene.
Copyright © 2013. All Rights Reserved.