Package eu.bandm.tools.xslt.base
Class TransformationCache
java.lang.Object
eu.bandm.tools.xslt.base.MessageSender
eu.bandm.tools.xslt.base.TransformationCache
Caches
Transformation
objects, ie top-level xslt source files for one
particular backend. These may include and import further xslt source files.-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Stores error messages and (OPT) the result object of the parsing process. -
Field Summary
Modifier and TypeFieldDescriptionprotected Map<URI,
TransformationCache.LoadResult> Cache from sourceURI
toTransformation
, going into plain text.protected final Transformation.Modifiers
protected Map<String,
Map<URI, TransformationCache.LoadResult>> Cache from (target tdom class name cross sourceURI
) toTransformation
.protected final TemplatesCache
Fields inherited from class eu.bandm.tools.xslt.base.MessageSender
msg, trace
-
Constructor Summary
ConstructorDescriptionTransformationCache
(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace, Transformation.Modifiers modifiers, TemplatesCache templatesCache) SetsMessageReceiver
andTrace
for the standard messaging control, and Modifiers. -
Method Summary
Modifier and TypeMethodDescription(package private) Transformation
_getTransformation
(@Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, ResultContext resultContext, Function<NamespaceName, FunctionSignature> builtInFunctions, DTM.Dtd sourceDtm, Collection<DTM.Element> topSourceElements, List<Transformation> calledBy) Called directly byTransformation
/Transformation.Loader
for IMPORTing xslt sources.getTransformation
(@Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, ResultContext resultContext, Function<NamespaceName, FunctionSignature> builtInFunctions, DTM.Dtd sourceDtm, Collection<DTM.Element> topSourceElements) Called from "Main" etc., central service access points for loading an XSLT source for a particular evaluation context.
-
Field Details
-
templatesCache
-
modifiers
-
absoluteTransformation
Cache from sourceURI
toTransformation
, going into plain text. -
resultTransformation
Cache from (target tdom class name cross sourceURI
) toTransformation
.
-
-
Constructor Details
-
TransformationCache
public TransformationCache(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace, Transformation.Modifiers modifiers, TemplatesCache templatesCache) SetsMessageReceiver
andTrace
for the standard messaging control, and Modifiers.
-
-
Method Details
-
getTemplatesCache
-
getTransformation
public Transformation getTransformation(@Opt @Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, ResultContext resultContext, Function<NamespaceName, FunctionSignature> builtInFunctions, DTM.Dtd sourceDtm, Collection<DTM.Element> topSourceElements) Called from "Main" etc., central service access points for loading an XSLT source for a particular evaluation context.- Parameters:
callingLocation
- may be ==null only for top-most source from command line
-
_getTransformation
Transformation _getTransformation(@Opt @Opt Location<XMLDocumentIdentifier> callingLocation, URI sourceUri, ResultContext resultContext, Function<NamespaceName, FunctionSignature> builtInFunctions, DTM.Dtd sourceDtm, Collection<DTM.Element> topSourceElements, List<Transformation> calledBy) Called directly byTransformation
/Transformation.Loader
for IMPORTing xslt sources.- Parameters:
callingLocation
- may be ==null only for top-most source from command linecalledBy
- is for cycle detection.
-