Class WordXMLRawTemplateProcessor
java.lang.Object
org.nuxeo.template.processors.AbstractTemplateProcessor
org.nuxeo.template.processors.docx.WordXMLRawTemplateProcessor
- All Implemented Interfaces:
TemplateProcessor
,BidirectionalTemplateProcessor
public class WordXMLRawTemplateProcessor
extends AbstractTemplateProcessor
implements BidirectionalTemplateProcessor
WordXML implementation of the
BidirectionalTemplateProcessor
. Uses Raw XML parsing : legacy code for now.- Author:
- Tiry ([email protected])
-
Field Summary
Fields inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
BUFFER_SIZE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionExtract parameters from the Template file.protected TemplateInput
getParamByName
(String name, List<TemplateInput> params) renderTemplate
(TemplateBasedDocument templateDocument, String templateName) Perform rendering of the named template against theTemplateBasedDocument
updateDocumentFromBlob
(TemplateBasedDocument templateDocument, String templateName) Methods inherited from class org.nuxeo.template.processors.AbstractTemplateProcessor
getSourceTemplateBlob, getWorkingDir
-
Field Details
-
WORD_XML_DATE_FORMAT
- See Also:
-
TEMPLATE_TYPE
- See Also:
-
-
Constructor Details
-
WordXMLRawTemplateProcessor
public WordXMLRawTemplateProcessor()
-
-
Method Details
-
renderTemplate
public Blob renderTemplate(TemplateBasedDocument templateDocument, String templateName) throws IOException Description copied from interface:TemplateProcessor
Perform rendering of the named template against theTemplateBasedDocument
- Specified by:
renderTemplate
in interfaceTemplateProcessor
- Throws:
IOException
-
getInitialParametersDefinition
Description copied from interface:TemplateProcessor
Extract parameters from the Template file.- Specified by:
getInitialParametersDefinition
in interfaceTemplateProcessor
- Returns:
- List of parameters for this template
- Throws:
IOException
-
getParamByName
-
readPropertyFile
- Throws:
IOException
-
updateDocumentFromBlob
public DocumentModel updateDocumentFromBlob(TemplateBasedDocument templateDocument, String templateName) throws IOException - Specified by:
updateDocumentFromBlob
in interfaceBidirectionalTemplateProcessor
- Throws:
IOException
-