public class TemplatesCache extends MessageSender
Modifier and Type | Class and Description |
---|---|
static class |
TemplatesCache.LoadResult
Stores error messages and (OPT) the result object of the parsing process.
|
Modifier and Type | Field and Description |
---|---|
protected Map<URI,TemplatesCache.LoadResult> |
absoluteTemplates |
protected Map<String,Map<URI,TemplatesCache.LoadResult>> |
resultTemplates |
protected Map<XMLDocumentIdentifier,URI> |
xmldocumentid2uri |
Constructor and Description |
---|
TemplatesCache(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg,
Trace trace)
Sets
MessageReceiver and Trace for the standard messaging control. |
Modifier and Type | Method and Description |
---|---|
URI |
baseURI(Location<XMLDocumentIdentifier> loc) |
URI |
baseURI(TypedElement el) |
URI |
baseURI(XMLDocumentIdentifier id) |
Templates |
getTemplates(@Opt Location<XMLDocumentIdentifier> callingLocation,
URI sourceUri,
@Opt ResultContext resultContext)
Loads a set of xslt rules from the given file for the given result tdom
into a
Templates object. |
getLocation, setMsg, setTrace
protected Map<XMLDocumentIdentifier,URI> xmldocumentid2uri
protected Map<URI,TemplatesCache.LoadResult> absoluteTemplates
protected Map<String,Map<URI,TemplatesCache.LoadResult>> resultTemplates
public TemplatesCache(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace)
MessageReceiver
and Trace
for the standard messaging control.public Templates getTemplates(@Opt @Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, @Opt @Opt ResultContext resultContext)
Templates
object. Sends error message if parsing error occurs.
The result tdom is identified by the classname of the tdom package.
(There are different Templates objects for different target tdoms, because
the "verbatim element names" of the source text will be interpreted differently.)callingLocation
- may be ==null only for top-most source from command linepublic URI baseURI(TypedElement el)
public URI baseURI(Location<XMLDocumentIdentifier> loc)
public URI baseURI(XMLDocumentIdentifier id)
see also the complete user documentation .