public interface VirtualDocumentResolver extends Serializable
Fields of virtual type return
a list of virtual document fragments
containing a document specification (e.g., its URI) and the virtual text associated with the document. Since there are
many ways of defining the virtual document,
a virtual-document resolver for each virtual field: the resolver takes in the string defining a document,
and returns a document number. See
URLMPHVirtualDocumentResolver for a
|Modifier and Type||Method and Description|
Sets the context document.
Returns the number of documents handled by this resolver, if it is known.
Resolves a virtual document specification.
void context(Document document)
resolve(CharSequence)will assume the virtual-document specification was found in
document- the context document.
int resolve(CharSequence virtualDocumentSpec)
Note that the resolution process is carried out in the context of the last document
context(Document) (e.g., for relative URI resolution). If
was never called, the behaviour is undefined.
virtualDocumentSpec- the virtual document specification.
virtualDocumentSpecrefers to, or -1 if the specification could not be resolved.
resolve(CharSequence)will always return a number smaller than the one returned by this method.