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
Nested ClassesModifier and TypeClassDescriptionstatic classStores error messages and (OPT) the result object of the parsing process. -
Field Summary
FieldsModifier and TypeFieldDescriptionprotected Map<URI, TransformationCache.LoadResult> Cache from sourceURItoTransformation, going into plain text.protected final Transformation.Modifiersprotected Map<String, Map<URI, TransformationCache.LoadResult>> Cache from (target tdom class name cross sourceURI) toTransformation.protected final TemplatesCacheFields inherited from class eu.bandm.tools.xslt.base.MessageSender
msg, trace -
Constructor Summary
ConstructorsConstructorDescriptionTransformationCache(MessageReceiver<SimpleMessage<XMLDocumentIdentifier>> msg, Trace trace, Transformation.Modifiers modifiers, TemplatesCache templatesCache) SetsMessageReceiverandTracefor 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.Loaderfor 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 sourceURItoTransformation, 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) SetsMessageReceiverandTracefor 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.Loaderfor IMPORTing xslt sources.- Parameters:
callingLocation- may be ==null only for top-most source from command linecalledBy- is for cycle detection.
-