public abstract class AbstractRTFUseCase extends Object
| Constructor and Description |
|---|
AbstractRTFUseCase(String outDirectory) |
| Modifier and Type | Method and Description |
|---|---|
protected int |
getGroupByPerPageBreak() |
protected RTFTemplate |
getRtfTemplate() |
String |
getRtfTemplateImpl() |
String |
getXMLFields()
Return String XML Mergefields used in your context and Bookmarks (for
start and end loop)
|
boolean |
isCircularReferences() |
protected abstract void |
putContext(IContext context)
This method must be implement by class wich manage your RTF model.
|
protected void |
putDefaultFormat(RTFTemplate template) |
protected void |
putGlobalContext(IContext context) |
void |
run(String rtfSource)
Run RTFTemplate for merging rtfSource with the context putted with the
method putContext which be must implement.
|
void |
saveTransformedDocument(boolean saveTransformedDocument)
set true if RTF with (velocity, freemarker,... macro) file must be
generated and false otherwise.
|
void |
saveXmlFields(String filename,
boolean force)
Save XML fields available into file.
|
protected void |
setApplicationContext(org.springframework.context.ApplicationContext applicationContext) |
void |
setCircularReferences(boolean circularReferences)
true if context has circular references and false otherwise
|
protected void |
setGroupByPerPageBreak(int groupByPerPageBreak)
This value allow to group by content when there is PageBreak in order to
group by content.
|
void |
setRtfTemplateImpl(String rtfTemplateImpl) |
void |
setTransformerConfigFile(File transformerConfigFile) |
void |
setTransformerConfigFile(String transformerConfig) |
public AbstractRTFUseCase(String outDirectory)
public final void run(String rtfSource) throws Exception
rtfSource - RTF source model.Exception - the exception.public String getXMLFields()
protected void putDefaultFormat(RTFTemplate template)
protected void putGlobalContext(IContext context)
public void saveXmlFields(String filename, boolean force) throws Exception
filename - the filename.force - the force.Exception - the exception.protected abstract void putContext(IContext context)
context - IContextpublic void setTransformerConfigFile(String transformerConfig)
public void setTransformerConfigFile(File transformerConfigFile)
public void saveTransformedDocument(boolean saveTransformedDocument)
saveTransformedDocument - the saveTransformedDocument.public String getRtfTemplateImpl()
public void setRtfTemplateImpl(String rtfTemplateImpl)
protected int getGroupByPerPageBreak()
protected void setGroupByPerPageBreak(int groupByPerPageBreak)
groupByPerPageBreak - the groupByPerPageBreak.protected RTFTemplate getRtfTemplate()
protected void setApplicationContext(org.springframework.context.ApplicationContext applicationContext)
public boolean isCircularReferences()
public void setCircularReferences(boolean circularReferences)
circularReferences - the circularReferences.Copyright © 2020 Mice S.r.l. All rights reserved.