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 String | 
WORD_XML_DATE_FORMAT  | 
BUFFER_SIZE, log| Constructor and Description | 
|---|
WordXMLRawTemplateProcessor()  | 
| Modifier and Type | Method and Description | 
|---|---|
List<TemplateInput> | 
getInitialParametersDefinition(Blob blob)
Extract parameters from the Template file. 
 | 
protected TemplateInput | 
getParamByName(String name,
              List<TemplateInput> params)  | 
String | 
readPropertyFile(InputStream in)  | 
Blob | 
renderTemplate(TemplateBasedDocument templateDocument,
              String templateName)
Perform rendering of the named template against the  
TemplateBasedDocument | 
DocumentModel | 
updateDocumentFromBlob(TemplateBasedDocument templateDocument,
                      String templateName)  | 
getSourceTemplateBlob, getWorkingDirpublic static final String WORD_XML_DATE_FORMAT
public static final String TEMPLATE_TYPE
public WordXMLRawTemplateProcessor()
public Blob renderTemplate(TemplateBasedDocument templateDocument, String templateName) throws IOException
TemplateProcessorTemplateBasedDocumentrenderTemplate in interface TemplateProcessorIOExceptionpublic List<TemplateInput> getInitialParametersDefinition(Blob blob) throws IOException
TemplateProcessorgetInitialParametersDefinition in interface TemplateProcessorIOExceptionprotected TemplateInput getParamByName(String name, List<TemplateInput> params)
public String readPropertyFile(InputStream in) throws IOException
IOExceptionpublic DocumentModel updateDocumentFromBlob(TemplateBasedDocument templateDocument, String templateName) throws IOException
updateDocumentFromBlob in interface BidirectionalTemplateProcessorIOExceptionCopyright © 2019 Nuxeo. All rights reserved.