public class RTFTemplateBuilder extends Object
| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_FREEMARKER_RTFTEMPLATE |
static String |
DEFAULT_RTFDOCUMENTPARSER |
static String |
DEFAULT_VELOCITY_RTFTEMPLATE |
static String |
FREEMARKER_ENGINE |
static String |
FREEMARKER_TRANSFORMER |
static String |
VELOCITY_ENGINE |
static String |
VELOCITY_TRANSFORMER |
| Modifier and Type | Method and Description |
|---|---|
IRTFDocumentParser |
newRTFDocumentParser() |
IRTFDocumentParser |
newRTFDocumentParser(String rtfDocumentParserType)
Return RTFDocumentParser implementation of template engine type
rtfDocumentParserType. |
IRTFDocumentTransformer |
newRTFDocumentTransformer(String rtfDocumentTransformerType)
Return RTFDocumentTransformer implementation of template engine type
rtfDocumentTransformerType. |
RTFTemplate |
newRTFTemplate()
Reurn RTFTemplate with Velocity Implementation.
|
RTFTemplate |
newRTFTemplate(String rtfTemplateType)
Return RTFTemplate implementation of rtf template type
rtfTemplateType. |
static RTFTemplateBuilder |
newRTFTemplateBuilder() |
static RTFTemplateBuilder |
newRTFTemplateBuilder(org.springframework.context.ApplicationContext applicationContext) |
static RTFTemplateBuilder |
newRTFTemplateBuilder(String configLocation) |
static RTFTemplateBuilder |
newRTFTemplateBuilder(String key,
org.springframework.context.ApplicationContext applicationContext) |
ITemplateEngine |
newTemplateEngine(String templateEngineType)
Return TemplateEngine implementation of template engine type
templateEngineType. |
public static final String DEFAULT_FREEMARKER_RTFTEMPLATE
public static final String DEFAULT_VELOCITY_RTFTEMPLATE
public static final String DEFAULT_RTFDOCUMENTPARSER
public static final String VELOCITY_ENGINE
public static final String VELOCITY_TRANSFORMER
public static final String FREEMARKER_ENGINE
public static final String FREEMARKER_TRANSFORMER
public static RTFTemplateBuilder newRTFTemplateBuilder()
public static RTFTemplateBuilder newRTFTemplateBuilder(String configLocation)
public static RTFTemplateBuilder newRTFTemplateBuilder(String key, org.springframework.context.ApplicationContext applicationContext)
public static RTFTemplateBuilder newRTFTemplateBuilder(org.springframework.context.ApplicationContext applicationContext)
public RTFTemplate newRTFTemplate(String rtfTemplateType) throws UnsupportedRTFTemplate
rtfTemplateType. Throw
exception UnsupportedRTFTemplate if template
type is not supported.rtfTemplateType - the rtfTemplateType.UnsupportedRTFTemplate - exception.public RTFTemplate newRTFTemplate() throws UnsupportedRTFTemplate
UnsupportedRTFTemplate - the exception.public ITemplateEngine newTemplateEngine(String templateEngineType) throws UnsupportedTemplateEngine
templateEngineType. Throw
exception UnsupportedTemplateEngine if template
engine is not supported.templateEngineType - template engine type (fm, vm,...)UnsupportedTemplateEngine - the exception.public IRTFDocumentTransformer newRTFDocumentTransformer(String rtfDocumentTransformerType) throws UnsupportedRTFDocumentTransformer
rtfDocumentTransformerType. Throw
exception UnsupportedRTFDocumentTransformer if template
engine is not supported.rtfDocumentTransformerType - the rtf Document Transformer Type.UnsupportedRTFDocumentTransformer - the exception.public IRTFDocumentParser newRTFDocumentParser(String rtfDocumentParserType) throws UnsupportedRTFDocumentParser
rtfDocumentParserType. Throw
exception UnsupportedRTFDocumentParser if template
engine is not supported.rtfDocumentParserType - the rtf Document Parser Type.UnsupportedRTFDocumentParser - the exception.public IRTFDocumentParser newRTFDocumentParser() throws UnsupportedRTFDocumentParser
UnsupportedRTFDocumentParserCopyright © 2020 Mice S.r.l. All rights reserved.