fr.opensagres.xdocreport.document.docx.preprocessor.sax.numbering
Class DocxNumberingPreprocessor

java.lang.Object
  extended by fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor<InputStream>
      extended by fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
          extended by fr.opensagres.xdocreport.document.docx.preprocessor.sax.numbering.DocxNumberingPreprocessor
All Implemented Interfaces:
IXDocPreprocessor

public class DocxNumberingPreprocessor
extends SAXXDocPreprocessor

This processor modify the XML entry word/numbering.xml


Field Summary
static IXDocPreprocessor INSTANCE
           
 
Constructor Summary
DocxNumberingPreprocessor()
           
 
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.
protected  BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName, FieldsMetadata fieldsMetadata, IDocumentFormatter formater, Map<String,Object> sharedContext)
           
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.sax.SAXXDocPreprocessor
closeSource, getSource, preprocess
 
Methods inherited from class fr.opensagres.xdocreport.document.preprocessor.AbstractXDocPreprocessor
createAndProcess, preprocess
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

INSTANCE

public static final IXDocPreprocessor INSTANCE
Constructor Detail

DocxNumberingPreprocessor

public DocxNumberingPreprocessor()
Method Detail

createBufferedDocumentContentHandler

protected BufferedDocumentContentHandler createBufferedDocumentContentHandler(String entryName,
                                                                              FieldsMetadata fieldsMetadata,
                                                                              IDocumentFormatter formater,
                                                                              Map<String,Object> sharedContext)
Specified by:
createBufferedDocumentContentHandler in class SAXXDocPreprocessor

create

public boolean create(String entryName,
                      XDocArchive outputArchive,
                      FieldsMetadata fieldsMetadata,
                      IDocumentFormatter formatter,
                      Map<String,Object> sharedContext)
               throws XDocReportException,
                      IOException
Description copied from interface: IXDocPreprocessor
Create the XML file identify with te entry name from the archive.

Specified by:
create in interface IXDocPreprocessor
Overrides:
create in class AbstractXDocPreprocessor<InputStream>
Parameters:
entryName - Zip entry name fo the XML file to modify.
outputArchive - the zip of the XML document.
fieldsMetadata - metdata fields.
sharedContext - 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).
Returns:
true if processing can create entry and false otherwise.
Throws:
XDocReportException
IOException


Copyright © 2013. All rights reserved.