public enum EngineConfigurationKey extends Enum<EngineConfigurationKey> implements ConfigurationKey
Enum Constant and Description |
---|
CACHE_SECTION_LITERAL_BLOCK
true in case of the section-based literal blocks should be
cached (useful to optimize some lambdas processing scenarios, but memory
intensive), false otherwise. |
DEBUG_MODE
true in case of debug mode should be enabled,
false otherwise. |
DEFAULT_FILE_ENCODING
The encoding every template locator should use if reading template from a
file.
|
END_DELIMITER
The default end delimiter (e.g.
|
HANDLEBARS_SUPPORT_ENABLED
If set to
true handlebars-like helpers are supported. |
ITERATION_METADATA_ALIAS
The alias for iteration metadata object available inside an iteration
block.
|
NESTED_TEMPLATE_SUPPORT_ENABLED
If set to
true the nested templates are supported. |
NO_VALUE_INDICATES_PROBLEM
Deprecated.
see also
MissingValueHandler |
PRECOMPILE_ALL_TEMPLATES
true if precompilation of all available templates is
required, false otherwise. |
REMOVE_STANDALONE_LINES
true if standalone lines should be removed (see also
Mustache spec), false otherwise. |
REMOVE_UNNECESSARY_SEGMENTS
true if unnecessary segments should be removed (e.g. |
RESOLVER_HINTS_ENABLED
If set to
true a hint may be used to skip the resolver chain
for some parts of the key during evaluation of variables. |
REUSE_LINE_SEPARATOR_SEGMENTS
If set to
true line separators will be reused within
template to conserve memory. |
SKIP_VALUE_ESCAPING
If set to
true interpolated values are never escaped, i.e. |
START_DELIMITER
The default start delimiter (e.g.
|
TEMPLATE_CACHE_ENABLED
If set to
true the template cache is enabled. |
TEMPLATE_CACHE_EXPIRATION_TIMEOUT
The template cache expiration timeout in seconds.
|
TEMPLATE_CACHE_USED_FOR_SOURCE
If set to
true the template cache is also used for template sources. |
TEMPLATE_RECURSIVE_INVOCATION_LIMIT
The limit of recursive template invocation; 0 - recursive invocation is
forbidden.
|
Modifier and Type | Method and Description |
---|---|
String |
get() |
Object |
getDefaultValue()
|
static EngineConfigurationKey |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EngineConfigurationKey[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EngineConfigurationKey START_DELIMITER
{{
).public static final EngineConfigurationKey END_DELIMITER
}}
).public static final EngineConfigurationKey PRECOMPILE_ALL_TEMPLATES
true
if precompilation of all available templates is
required, false
otherwise.public static final EngineConfigurationKey REMOVE_STANDALONE_LINES
true
if standalone lines should be removed (see also
Mustache spec), false
otherwise.public static final EngineConfigurationKey REMOVE_UNNECESSARY_SEGMENTS
true
if unnecessary segments should be removed (e.g.
comments), false
otherwise.@Deprecated public static final EngineConfigurationKey NO_VALUE_INDICATES_PROBLEM
MissingValueHandler
true
if lookup miss should result in exception,
false
otherwise.public static final EngineConfigurationKey DEBUG_MODE
true
in case of debug mode should be enabled,
false
otherwise. Debug mode disables the template cache and
provides some more logging during template rendering.public static final EngineConfigurationKey CACHE_SECTION_LITERAL_BLOCK
true
in case of the section-based literal blocks should be
cached (useful to optimize some lambdas processing scenarios, but memory
intensive), false
otherwise.public static final EngineConfigurationKey TEMPLATE_RECURSIVE_INVOCATION_LIMIT
public static final EngineConfigurationKey SKIP_VALUE_ESCAPING
true
interpolated values are never escaped, i.e.
org.trimou.engine.text.TextSupport.escapeHtml(String) is never called.public static final EngineConfigurationKey DEFAULT_FILE_ENCODING
public static final EngineConfigurationKey TEMPLATE_CACHE_ENABLED
true
the template cache is enabled.public static final EngineConfigurationKey TEMPLATE_CACHE_EXPIRATION_TIMEOUT
public static final EngineConfigurationKey HANDLEBARS_SUPPORT_ENABLED
true
handlebars-like helpers are supported.Helper
public static final EngineConfigurationKey REUSE_LINE_SEPARATOR_SEGMENTS
true
line separators will be reused within
template to conserve memory. Note that
AbstractSegment.getOrigin()
will not display the correct
info.public static final EngineConfigurationKey ITERATION_METADATA_ALIAS
{{#each items}}
{{iter.index}}
{{/each}}
public static final EngineConfigurationKey RESOLVER_HINTS_ENABLED
true
a hint may be used to skip the resolver chain
for some parts of the key during evaluation of variables.EnhancedResolver.Hint
public static final EngineConfigurationKey NESTED_TEMPLATE_SUPPORT_ENABLED
true
the nested templates are supported. Otherwise
any start tag of a nested template definition is considered to be a
regular variable tag.public static final EngineConfigurationKey TEMPLATE_CACHE_USED_FOR_SOURCE
true
the template cache is also used for template sources.MustacheEngine.getMustacheSource(String)
public static EngineConfigurationKey[] values()
for (EngineConfigurationKey c : EngineConfigurationKey.values()) System.out.println(c);
public static EngineConfigurationKey valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic String get()
get
in interface ConfigurationKey
public Object getDefaultValue()
ConfigurationKey
String
, Boolean
, Integer
and
Long
.getDefaultValue
in interface ConfigurationKey
Copyright © 2017. All rights reserved.