|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface IXDocPreprocessor
XML document preprocessor is used to modify the content of the original document from the archive of the XML document
(odt, docx...). For instance loop management in table managed with FieldsMetadata
implements an
IXDocPreprocessor
to add directive template engine (#foreach for velocity, [#list for freemarker) in the
table row.
Method Summary | |
---|---|
boolean |
create(String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext)
Create the XML file identify with te entry name from the archive. |
void |
preprocess(String entryName,
XDocArchive outputArchive,
FieldsMetadata fieldsMetadata,
IDocumentFormatter formatter,
Map<String,Object> sharedContext)
Modify the XML file identify with te entry name from the archive. |
Method Detail |
---|
void preprocess(String entryName, XDocArchive outputArchive, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext) throws XDocReportException, 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).
XDocReportException
IOException
boolean create(String entryName, XDocArchive outputArchive, FieldsMetadata fieldsMetadata, IDocumentFormatter formatter, Map<String,Object> sharedContext) throws XDocReportException, 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).
XDocReportException
IOException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |