public class WordXMLRawTemplateProcessor extends AbstractTemplateProcessor implements BidirectionalTemplateProcessor
BidirectionalTemplateProcessor. Uses
Raw XML parsing : legacy code for now.| Modifier and Type | Field and Description |
|---|---|
static String |
TEMPLATE_TYPE |
static SimpleDateFormat |
wordXMLDateFormat |
BUFFER_SIZE, log| Constructor and Description |
|---|
WordXMLRawTemplateProcessor() |
| Modifier and Type | Method and Description |
|---|---|
List<TemplateInput> |
getInitialParametersDefinition(Blob blob) |
protected TemplateInput |
getParamByName(String name,
List<TemplateInput> params) |
String |
readPropertyFile(InputStream in) |
Blob |
renderTemplate(TemplateBasedDocument templateDocument,
String templateName) |
DocumentModel |
updateDocumentFromBlob(TemplateBasedDocument templateDocument,
String templateName) |
getSourceTemplateBlob, getWorkingDirpublic static SimpleDateFormat wordXMLDateFormat
public static final String TEMPLATE_TYPE
public Blob renderTemplate(TemplateBasedDocument templateDocument, String templateName) throws Exception
renderTemplate in interface TemplateProcessorExceptionpublic List<TemplateInput> getInitialParametersDefinition(Blob blob) throws Exception
getInitialParametersDefinition in interface TemplateProcessorExceptionprotected TemplateInput getParamByName(String name, List<TemplateInput> params)
public String readPropertyFile(InputStream in) throws Exception
Exceptionpublic DocumentModel updateDocumentFromBlob(TemplateBasedDocument templateDocument, String templateName) throws Exception
updateDocumentFromBlob in interface BidirectionalTemplateProcessorExceptionCopyright © 2019 Nuxeo SA. All rights reserved.