net.sourceforge.rtf.helper
Class RTFTemplateBuilder

java.lang.Object
  extended by net.sourceforge.rtf.helper.RTFTemplateBuilder

public class RTFTemplateBuilder
extends java.lang.Object


Field Summary
static java.lang.String DEFAULT_FREEMARKER_RTFTEMPLATE
           
static java.lang.String DEFAULT_RTFDOCUMENTPARSER
           
static java.lang.String DEFAULT_VELOCITY_RTFTEMPLATE
           
static java.lang.String FREEMARKER_ENGINE
           
static java.lang.String FREEMARKER_TRANSFORMER
           
static java.lang.String VELOCITY_ENGINE
           
static java.lang.String VELOCITY_TRANSFORMER
           
 
Method Summary
 IRTFDocumentParser newRTFDocumentParser()
           
 IRTFDocumentParser newRTFDocumentParser(java.lang.String rtfDocumentParserType)
          Return RTFDocumentParser implementation of template engine type rtfDocumentParserType.
 IRTFDocumentTransformer newRTFDocumentTransformer(java.lang.String rtfDocumentTransformerType)
          Return RTFDocumentTransformer implementation of template engine type rtfDocumentTransformerType.
 RTFTemplate newRTFTemplate()
          Reurn RTFTemplate with Velocity Implementation.
 RTFTemplate newRTFTemplate(java.lang.String rtfTemplateType)
          Return RTFTemplate implementation of rtf template type rtfTemplateType.
static RTFTemplateBuilder newRTFTemplateBuilder()
           
static RTFTemplateBuilder newRTFTemplateBuilder(org.springframework.context.ApplicationContext applicationContext)
           
static RTFTemplateBuilder newRTFTemplateBuilder(java.lang.String configLocation)
           
static RTFTemplateBuilder newRTFTemplateBuilder(java.lang.String key, org.springframework.context.ApplicationContext applicationContext)
           
 ITemplateEngine newTemplateEngine(java.lang.String templateEngineType)
          Return TemplateEngine implementation of template engine type templateEngineType.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_FREEMARKER_RTFTEMPLATE

public static final java.lang.String DEFAULT_FREEMARKER_RTFTEMPLATE
See Also:
Constant Field Values

DEFAULT_VELOCITY_RTFTEMPLATE

public static final java.lang.String DEFAULT_VELOCITY_RTFTEMPLATE
See Also:
Constant Field Values

DEFAULT_RTFDOCUMENTPARSER

public static final java.lang.String DEFAULT_RTFDOCUMENTPARSER
See Also:
Constant Field Values

VELOCITY_ENGINE

public static final java.lang.String VELOCITY_ENGINE
See Also:
Constant Field Values

VELOCITY_TRANSFORMER

public static final java.lang.String VELOCITY_TRANSFORMER
See Also:
Constant Field Values

FREEMARKER_ENGINE

public static final java.lang.String FREEMARKER_ENGINE
See Also:
Constant Field Values

FREEMARKER_TRANSFORMER

public static final java.lang.String FREEMARKER_TRANSFORMER
See Also:
Constant Field Values
Method Detail

newRTFTemplateBuilder

public static RTFTemplateBuilder newRTFTemplateBuilder()

newRTFTemplateBuilder

public static RTFTemplateBuilder newRTFTemplateBuilder(java.lang.String configLocation)

newRTFTemplateBuilder

public static RTFTemplateBuilder newRTFTemplateBuilder(java.lang.String key,
                                                       org.springframework.context.ApplicationContext applicationContext)

newRTFTemplateBuilder

public static RTFTemplateBuilder newRTFTemplateBuilder(org.springframework.context.ApplicationContext applicationContext)

newRTFTemplate

public RTFTemplate newRTFTemplate(java.lang.String rtfTemplateType)
                           throws UnsupportedRTFTemplate
Return RTFTemplate implementation of rtf template type rtfTemplateType. Throw exception UnsupportedRTFTemplate if template type is not supported.

Parameters:
RTFfDocument - Type (fmRTFTemplate, vmRTFTemplate,...)
Returns:
Throws:
UnsupportedRTFDocumentTransformer
UnsupportedRTFTemplate

newRTFTemplate

public RTFTemplate newRTFTemplate()
                           throws UnsupportedRTFTemplate
Reurn RTFTemplate with Velocity Implementation.

Returns:
Throws:
UnsupportedRTFTemplate

newTemplateEngine

public ITemplateEngine newTemplateEngine(java.lang.String templateEngineType)
                                  throws UnsupportedTemplateEngine
Return TemplateEngine implementation of template engine type templateEngineType. Throw exception UnsupportedTemplateEngine if template engine is not supported.

Parameters:
templateEngineType - template engine type (fm, vm,...)
Returns:
Throws:
UnsupportedTemplateEngine

newRTFDocumentTransformer

public IRTFDocumentTransformer newRTFDocumentTransformer(java.lang.String rtfDocumentTransformerType)
                                                  throws UnsupportedRTFDocumentTransformer
Return RTFDocumentTransformer implementation of template engine type rtfDocumentTransformerType. Throw exception UnsupportedRTFDocumentTransformer if template engine is not supported.

Parameters:
RTFfDocument - Transformer Type (fmTransformer, vmTransformer,...)
Returns:
Throws:
UnsupportedRTFDocumentTransformer

newRTFDocumentParser

public IRTFDocumentParser newRTFDocumentParser(java.lang.String rtfDocumentParserType)
                                        throws UnsupportedRTFDocumentParser
Return RTFDocumentParser implementation of template engine type rtfDocumentParserType. Throw exception UnsupportedRTFDocumentParser if template engine is not supported.

Parameters:
RTFfDocument - Parser Type (defaultRTFParser,...)
Returns:
Throws:
UnsupportedRTFDocumentParser

newRTFDocumentParser

public IRTFDocumentParser newRTFDocumentParser()
                                        throws UnsupportedRTFDocumentParser
Throws:
UnsupportedRTFDocumentParser


Copyright 2007 null. All Rights Reserved.