public interface IXDocPreprocessor
FieldsMetadata implements an
IXDocPreprocessor to add directive template engine (#foreach for velocity, [#list for freemarker) in the
table row.| Modifier and Type | Method and Description |
|---|---|
boolean |
create(java.lang.String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
java.util.Map<java.lang.String,java.lang.Object> sharedContext)
Create the XML file identify with te entry name from the archive.
|
void |
preprocess(java.lang.String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
java.util.Map<java.lang.String,java.lang.Object> sharedContext)
Modify the XML file identify with te entry name from the archive.
|
void preprocess(java.lang.String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
java.util.Map<java.lang.String,java.lang.Object> sharedContext)
throws XDocReportException,
java.io.IOException
entryName - Zip entry name fo the XML file to modify.outputArchive - the zip of the XML document.fieldsMetadata - metdata fields.formater - used to generate directive template enginesharedContext - shared context between the whole processor to execute. This Map can be used to share
information between processors (according the order of the processor registration).XDocReportExceptionjava.io.IOExceptionboolean create(java.lang.String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
java.util.Map<java.lang.String,java.lang.Object> sharedContext)
throws XDocReportException,
java.io.IOException
entryName - Zip entry name fo the XML file to modify.outputArchive - the zip of the XML document.fieldsMetadata - metdata fields.formater - used to generate directive template enginesharedContext - shared context between the whole processor to execute. This Map can be used to share
information between processors (according the order of the processor registration).XDocReportExceptionjava.io.IOExceptionCopyright © 2022. All Rights Reserved.