com.uwyn.rife.template
Class TemplateFactory

java.lang.Object
  extended by com.uwyn.rife.datastructures.EnumClass<String>
      extended by com.uwyn.rife.template.TemplateFactory

public class TemplateFactory
extends EnumClass<String>


Field Summary
static com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_JAVA
           
static com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_SQL
           
static com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_TXT
           
static com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_XML
           
static com.uwyn.rife.template.Parser.Config CONFIG_VELOCITY
           
static com.uwyn.rife.template.Parser.Config CONFIG_XML_TAGS
           
static com.uwyn.rife.template.Parser.Config[] CONFIGS_JAVA
           
static com.uwyn.rife.template.Parser.Config[] CONFIGS_SQL
           
static com.uwyn.rife.template.Parser.Config[] CONFIGS_TXT
           
static com.uwyn.rife.template.Parser.Config[] CONFIGS_XML
           
static TemplateFactory ENGINEHTML
           
static TemplateFactory ENGINETXT
           
static TemplateFactory ENGINEXHTML
           
static TemplateFactory ENGINEXML
           
static TemplateFactory HTML
           
static TemplateFactory JAVA
           
protected  String mDefaultContentType
           
static String PREFIX_CONFIG
           
static String PREFIX_GROOVY
           
static String PREFIX_GROOVY_CONFIG
           
static String PREFIX_JANINO
           
static String PREFIX_JANINO_CONFIG
           
static String PREFIX_L10N
           
static String PREFIX_LANG
           
static String PREFIX_MVEL
           
static String PREFIX_MVEL_CONFIG
           
static String PREFIX_OGNL
           
static String PREFIX_OGNL_CONFIG
           
static String PREFIX_RENDER
           
static TemplateFactory SQL
           
static String TAG_CONFIG
           
static String TAG_GROOVY
           
static String TAG_GROOVY_CONFIG
           
static String TAG_JANINO
           
static String TAG_JANINO_CONFIG
           
static String TAG_L10N
           
static String TAG_LANG
           
static String TAG_MVEL
           
static String TAG_MVEL_CONFIG
           
static String TAG_OGNL
           
static String TAG_OGNL_CONFIG
           
static String TAG_RENDER
           
static TemplateFactory TXT
           
static TemplateFactory XHTML
           
static TemplateFactory XML
           
 
Fields inherited from class com.uwyn.rife.datastructures.EnumClass
mIdentifier
 
Constructor Summary
TemplateFactory(ResourceFinder resourceFinder, String identifier, com.uwyn.rife.template.Parser.Config[] configs, String defaultContentType, String extension, String[] blockFilters, String[] valueFilters, BeanHandler beanHandler, TemplateEncoder encoder, TemplateInitializer initializer)
           
TemplateFactory(String identifier, TemplateFactory base)
           
 
Method Summary
 Template get(String name)
           
 Template get(String name, String encoding)
           
 Template get(String name, String encoding, TemplateTransformer transformer)
           
 Template get(String name, TemplateTransformer transformer)
           
 BeanHandler getBeanHandler()
           
 String getDefaultContentType()
           
 TemplateEncoder getEncoder()
           
static TemplateFactory getFactory(String identifier)
           
static Collection<String> getFactoryTypes()
           
 String getIdentifierUppercase()
           
 TemplateInitializer getInitializer()
           
 ResourceFinder getResourceFinder()
           
 Class parse(String name, String encoding, TemplateTransformer transformer)
           
 TemplateFactory setBeanHandler(BeanHandler beanHandler)
           
 TemplateFactory setEncoder(TemplateEncoder encoder)
           
 TemplateFactory setInitializer(TemplateInitializer initializer)
           
 TemplateFactory setResourceFinder(ResourceFinder resourceFinder)
           
 
Methods inherited from class com.uwyn.rife.datastructures.EnumClass
equals, getIdentifiers, getMember, getMembers, hashCode, registerType, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

CONFIG_INVISIBLE_XML

public static final com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_XML

CONFIG_XML_TAGS

public static final com.uwyn.rife.template.Parser.Config CONFIG_XML_TAGS

CONFIG_VELOCITY

public static final com.uwyn.rife.template.Parser.Config CONFIG_VELOCITY

CONFIG_INVISIBLE_TXT

public static final com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_TXT

CONFIG_INVISIBLE_SQL

public static final com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_SQL

CONFIG_INVISIBLE_JAVA

public static final com.uwyn.rife.template.Parser.Config CONFIG_INVISIBLE_JAVA

CONFIGS_XML

public static final com.uwyn.rife.template.Parser.Config[] CONFIGS_XML

CONFIGS_TXT

public static final com.uwyn.rife.template.Parser.Config[] CONFIGS_TXT

CONFIGS_SQL

public static final com.uwyn.rife.template.Parser.Config[] CONFIGS_SQL

CONFIGS_JAVA

public static final com.uwyn.rife.template.Parser.Config[] CONFIGS_JAVA

PREFIX_CONFIG

public static final String PREFIX_CONFIG
See Also:
Constant Field Values

PREFIX_L10N

public static final String PREFIX_L10N
See Also:
Constant Field Values

PREFIX_LANG

public static final String PREFIX_LANG
See Also:
Constant Field Values

PREFIX_OGNL_CONFIG

public static final String PREFIX_OGNL_CONFIG
See Also:
Constant Field Values

PREFIX_OGNL

public static final String PREFIX_OGNL
See Also:
Constant Field Values

PREFIX_MVEL_CONFIG

public static final String PREFIX_MVEL_CONFIG
See Also:
Constant Field Values

PREFIX_MVEL

public static final String PREFIX_MVEL
See Also:
Constant Field Values

PREFIX_GROOVY_CONFIG

public static final String PREFIX_GROOVY_CONFIG
See Also:
Constant Field Values

PREFIX_GROOVY

public static final String PREFIX_GROOVY
See Also:
Constant Field Values

PREFIX_JANINO_CONFIG

public static final String PREFIX_JANINO_CONFIG
See Also:
Constant Field Values

PREFIX_JANINO

public static final String PREFIX_JANINO
See Also:
Constant Field Values

PREFIX_RENDER

public static final String PREFIX_RENDER
See Also:
Constant Field Values

TAG_CONFIG

public static final String TAG_CONFIG
See Also:
Constant Field Values

TAG_L10N

public static final String TAG_L10N
See Also:
Constant Field Values

TAG_LANG

public static final String TAG_LANG
See Also:
Constant Field Values

TAG_OGNL_CONFIG

public static final String TAG_OGNL_CONFIG
See Also:
Constant Field Values

TAG_OGNL

public static final String TAG_OGNL
See Also:
Constant Field Values

TAG_MVEL_CONFIG

public static final String TAG_MVEL_CONFIG
See Also:
Constant Field Values

TAG_MVEL

public static final String TAG_MVEL
See Also:
Constant Field Values

TAG_GROOVY_CONFIG

public static final String TAG_GROOVY_CONFIG
See Also:
Constant Field Values

TAG_GROOVY

public static final String TAG_GROOVY
See Also:
Constant Field Values

TAG_JANINO_CONFIG

public static final String TAG_JANINO_CONFIG
See Also:
Constant Field Values

TAG_JANINO

public static final String TAG_JANINO
See Also:
Constant Field Values

TAG_RENDER

public static final String TAG_RENDER
See Also:
Constant Field Values

HTML

public static TemplateFactory HTML

XHTML

public static TemplateFactory XHTML

XML

public static TemplateFactory XML

TXT

public static TemplateFactory TXT

SQL

public static TemplateFactory SQL

JAVA

public static TemplateFactory JAVA

ENGINEHTML

public static TemplateFactory ENGINEHTML

ENGINEXHTML

public static TemplateFactory ENGINEXHTML

ENGINEXML

public static TemplateFactory ENGINEXML

ENGINETXT

public static TemplateFactory ENGINETXT

mDefaultContentType

protected String mDefaultContentType
Constructor Detail

TemplateFactory

public TemplateFactory(ResourceFinder resourceFinder,
                       String identifier,
                       com.uwyn.rife.template.Parser.Config[] configs,
                       String defaultContentType,
                       String extension,
                       String[] blockFilters,
                       String[] valueFilters,
                       BeanHandler beanHandler,
                       TemplateEncoder encoder,
                       TemplateInitializer initializer)

TemplateFactory

public TemplateFactory(String identifier,
                       TemplateFactory base)
Method Detail

getIdentifierUppercase

public String getIdentifierUppercase()

getDefaultContentType

public String getDefaultContentType()

getFactoryTypes

public static Collection<String> getFactoryTypes()

getFactory

public static TemplateFactory getFactory(String identifier)

get

public Template get(String name)
             throws TemplateException
Throws:
TemplateException

get

public Template get(String name,
                    TemplateTransformer transformer)
             throws TemplateException
Throws:
TemplateException

get

public Template get(String name,
                    String encoding)
             throws TemplateException
Throws:
TemplateException

get

public Template get(String name,
                    String encoding,
                    TemplateTransformer transformer)
             throws TemplateException
Throws:
TemplateException

parse

public Class parse(String name,
                   String encoding,
                   TemplateTransformer transformer)
            throws TemplateException
Throws:
TemplateException

setResourceFinder

public TemplateFactory setResourceFinder(ResourceFinder resourceFinder)

getResourceFinder

public ResourceFinder getResourceFinder()

setBeanHandler

public TemplateFactory setBeanHandler(BeanHandler beanHandler)

getBeanHandler

public BeanHandler getBeanHandler()

setEncoder

public TemplateFactory setEncoder(TemplateEncoder encoder)

getEncoder

public TemplateEncoder getEncoder()

setInitializer

public TemplateFactory setInitializer(TemplateInitializer initializer)

getInitializer

public TemplateInitializer getInitializer()


Copyright © 2001-2007 Uwyn sprl/bvba. All Rights Reserved.