public class RTFTemplate extends Object
| Constructor and Description |
|---|
RTFTemplate() |
public void initializeContext()
public IContext getContext()
public void setGlobalContext(IContext globalContext)
globalContext - a pre-populated Context objectpublic void setTemplate(File rtfSourceFile) throws FileNotFoundException
rtfSourceFile - the rtf Source File.FileNotFoundException - the exception.public void setTemplate(InputStream template)
template - the template.public void setTemplate(Reader template)
template - the template.public void put(String key, Object value)
key - the key.value - the value.public RTFDocument merge(String file) throws Exception
file - the file.Exception - the exception.public RTFDocument merge(File file) throws Exception
file - file to merge intoException - the exception.public RTFDocument merge(Writer writer) throws Exception
writer - writer to merge intoException - the exception.public void setDefaultFormat(Class clazz, Format format)
clazz - class to set format forformat - format to use for instances of the given classpublic RTFDocument transform() throws IOException, SAXException
IOExceptionSAXExceptionpublic RTFDocument transform(boolean convertBracketsLowLevelVelocityCode) throws IOException, SAXException
IOExceptionSAXExceptionpublic ITemplateEngine getTemplateEngine()
public void setTemplateEngine(ITemplateEngine templateEngine)
public IRTFDocumentTransformer getTransformer()
public void setTransformer(IRTFDocumentTransformer transformer)
public void setTransformerConfig(TransformerConfig transformerConfig)
public TransformerConfig getTransformerConfig()
public InputStream getXmlFields()
public void setXmlFields(InputStream xmlFields)
public void setTransformedDocument(RTFDocument transformedDocument)
public RTFDocument getTransformedDocument()
public int getGroupByPerPageBreak()
public void setGroupByPerPageBreak(int groupByPerPageBreak)
public IRTFDocumentParser getParser()
public void setParser(IRTFDocumentParser parser)
public boolean isCircularReferences()
public void setCircularReferences(boolean circularReferences)
Copyright © 2020 Mice S.r.l. All rights reserved.