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)
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, getWorkingDir
public static SimpleDateFormat wordXMLDateFormat
public static final String TEMPLATE_TYPE
public WordXMLRawTemplateProcessor()
public Blob renderTemplate(TemplateBasedDocument templateDocument, String templateName) throws IOException
TemplateProcessor
TemplateBasedDocument
renderTemplate
in interface TemplateProcessor
IOException
public List<TemplateInput> getInitialParametersDefinition(Blob blob) throws IOException
TemplateProcessor
getInitialParametersDefinition
in interface TemplateProcessor
IOException
protected TemplateInput getParamByName(String name, List<TemplateInput> params)
public String readPropertyFile(InputStream in) throws IOException
IOException
public DocumentModel updateDocumentFromBlob(TemplateBasedDocument templateDocument, String templateName) throws IOException
updateDocumentFromBlob
in interface BidirectionalTemplateProcessor
IOException
Copyright © 2015 Nuxeo SA. All rights reserved.