Package eu.bandm.tools.d2d2.base
Class BatchProcessor.Job
java.lang.Object
eu.bandm.tools.d2d2.base.BatchProcessor.Job
- Enclosing class:
- BatchProcessor
Represents one transformation job, with all its parameters, to be applied to
multiple d2d source file inputs.
-
Field Summary
Modifier and TypeFieldDescription(package private) final Map<NamespaceName,
Value<Node>> Xslt parameters which do not depend from the name of the input file.(package private) final @Opt FunctionLibrary<Node>
Library of additinal functions to be usable in tpath exprs.(package private) final boolean
Flag to use a standard XSL-T processor provided by he Java runtime system, INSTEAD of txsl.(package private) final SimpleFilePattern
The template to derive the name of the result file from the name of the input file.(package private) final ResultContext
ResultContext as constructed by the txsl runtime system.(package private) final NamespaceName2String
User-defined parameters for the xslt code.(package private) final String
Key under which the xslt rules are found in the ddf.Identifier of the topmost definition which will be produced by the xslt transformation.(package private) final Map<NamespaceName,
String> Xslt parameters which depend from the name of the input file, by theSimpleFilePattern
template rules. -
Constructor Summary
ConstructorDescriptionJob
(String targetName, @Opt ResultContext resultContext, @Opt String topElementName, FunctionLibrary<Node> functionLibrary, @Opt NamespaceName2String stylesheetParams, boolean noTxsl, SimpleFilePattern outFilePattern) Only constructor. -
Method Summary
-
Field Details
-
targetName
Key under which the xslt rules are found in the ddf. For instance as in "docu to_[xhtml_1_0] = ...
" -
resultContext
ResultContext as constructed by the txsl runtime system. -
topElementName
Identifier of the topmost definition which will be produced by the xslt transformation. This is the local name w.r.t. the tdom (respectively its underlying definition module). It will be inserted into the header of the extracted xslt-d2d source, only to define the "accessible" back-end elements. -
functionLibrary
Library of additinal functions to be usable in tpath exprs. -
stylesheetParams
User-defined parameters for the xslt code. -
constParams
Xslt parameters which do not depend from the name of the input file. -
varyingParams
Xslt parameters which depend from the name of the input file, by theSimpleFilePattern
template rules. -
noTxsl
final boolean noTxslFlag to use a standard XSL-T processor provided by he Java runtime system, INSTEAD of txsl. This may be necessary if there is no tdom for a target text format. CURRENTLY NOT YET SUPPORTED. -
outFilePattern
The template to derive the name of the result file from the name of the input file. (The directory position of all input files can be either derived from that of the input file or set explicitly.)
-
-
Constructor Details
-
Job
public Job(String targetName, @Opt @Opt ResultContext resultContext, @Opt @Opt String topElementName, FunctionLibrary<Node> functionLibrary, @Opt @Opt NamespaceName2String stylesheetParams, boolean noTxsl, SimpleFilePattern outFilePattern) Only constructor. Applies some consistency checks to the arguments.- Parameters:
resultContext
- ==null indicates a conversion inot pure text. otherwise it must be a valid ResultContext for some tdom package.
-
-
Method Details
-
format
-