public class RTFTemplate extends Object
| Constructor and Description |
|---|
RTFTemplate() |
public void initializeContext()
public IContext getContext()
public void setGlobalContext(IContext globalContext)
innerContext - a pre-populated Context objectpublic void setTemplate(File rtfSourceFile) throws FileNotFoundException
template - FileNotFoundExceptionpublic void setTemplate(InputStream template)
template - public void setTemplate(Reader template)
template - public void put(String key, Object value)
key - value - public RTFDocument merge(String file) throws Exception
file - name of file to merge intoExceptionpublic RTFDocument merge(File file) throws Exception
file - file to merge intoExceptionpublic RTFDocument merge(Writer writer) throws Exception
writer - writer to merge intoExceptionpublic 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.