public class TargetOutputProcessor extends Object implements MessageSource
Modifier and Type | Field and Description |
---|---|
static String |
DEFAULT_XSLT_OUTPUT_SUFFIX |
static String |
PARAM_ADD_COMMENT
If set to "true", a comment will be added to output files (with one of
the following file extensions: xml, xsd, rdf, owl, sch, trix, sql, ddl,
ttl, nt, trig, nq).
|
static String |
PARAM_APPLY_XSLT
If set to "true", an XSL transformation will be applied to output files
created by the target, with one of the following file extensions: xml,
xsd, rdf, owl, sch, trix, html, sql, ddl, ttl, nt, trig, nq.
|
static String |
PARAM_COMMENT
Comment to add to the content of output files (see parameter
).
|
static String |
PARAM_FILENAME_PREFIX
Prefix to add to the name of output files (see parameter
"processOutput_modifyFileName").
|
static String |
PARAM_MODIFY_FILE_NAME
If set to "true", the name of output files will be augmented with a
prefix.
|
static String |
PARAM_PATH_TO_XSLT_DIRECTORY
Path to the directory that contains the XSL transformation file(s).
|
static String |
PARAM_XSL_TRANSFORMER_FACTORY
Identifies the XSLT processor implementation, to be used for processing
output files (see parameter "processOutput_applyXslt").
|
static String |
PARAM_XSLT_DELETE_INPUT_AFTER_TRANSFORM
If set to "true", the input file of an XSL transformation (that is
applied to output files created by a target) will be deleted - unless the
result file of the transformation has overwritten the input file.
|
static String |
PARAM_XSLT_FILENAME
Name of the XSL transformation file to apply.
|
static String |
PARAM_XSLT_OUTPUT_SUFFIX
Define the suffix to append to base names of files (i.e. the file name
without file extension) created by applying an XSL transformation to
output files.
|
Constructor and Description |
---|
TargetOutputProcessor(ShapeChangeResult result) |
Modifier and Type | Method and Description |
---|---|
void |
addCommentToTextFile(File txtFile,
String comment) |
void |
addCommentToXmlFile(File xmlFile,
String comment) |
String |
message(int mnr)
Return a message for a message number.
|
void |
process(List<File> outputFiles,
TargetConfiguration tgt,
PackageInfo schema) |
public static final String PARAM_APPLY_XSLT
public static final String PARAM_XSLT_OUTPUT_SUFFIX
public static final String DEFAULT_XSLT_OUTPUT_SUFFIX
public static final String PARAM_XSLT_DELETE_INPUT_AFTER_TRANSFORM
public static final String PARAM_PATH_TO_XSLT_DIRECTORY
public static final String PARAM_XSLT_FILENAME
public static final String PARAM_XSL_TRANSFORMER_FACTORY
public static final String PARAM_ADD_COMMENT
public static final String PARAM_COMMENT
public static final String PARAM_MODIFY_FILE_NAME
public static final String PARAM_FILENAME_PREFIX
public TargetOutputProcessor(ShapeChangeResult result)
public void process(List<File> outputFiles, TargetConfiguration tgt, PackageInfo schema)
outputFiles
- list of output files created by a target; typically does not
include temporary files that may have been created upon
writeAll by targets that are deferrable output writers (like
the tmp.xml from the feature catalogue target)tgt
- configuration of the target that created the outputpi
- schema from which the output has been derived; may be
null
if the output has been derived from multiple
schemas, or if the target is a deferrable output writerpublic String message(int mnr)
MessageSource
message
in interface MessageSource
Copyright © 2018. All rights reserved.