public class StandardDialect extends AbstractXHTMLEnabledDialect
The Standard Dialect, default implementation of IDialect.
StandardAltTitleAttrProcessorStandardAssertAttrProcessorStandardAttrAttrProcessorStandardAttrappendAttrProcessorStandardAttrprependAttrProcessorStandardCaseAttrProcessorStandardClassappendAttrProcessorStandardConditionalFixedValueAttrProcessorStandardDOMEventAttributeModifierAttrProcessorStandardEachAttrProcessorStandardFragmentAttrProcessorStandardObjectAttrProcessorStandardIfAttrProcessorStandardInlineAttrProcessorStandardUnlessAttrProcessorStandardIncludeFragmentAttrProcessorStandardLangXmlLangAttrProcessorStandardRemoveAttrProcessorStandardReplaceFragmentAttrProcessorStandardSingleNonRemovableAttributeModifierAttrProcessorStandardSingleRemovableAttributeModifierAttrProcessorStandardStyleappendAttrProcessorStandardSubstituteByFragmentAttrProcessorStandardSwitchAttrProcessorStandardTextAttrProcessorStandardUtextAttrProcessorStandardWithAttrProcessorStandardXmlBaseAttrProcessorStandardXmlLangAttrProcessorStandardXmlSpaceAttrProcessorStandardExpressions):
IStandardVariableExpressionEvaluator,
implemented by an object of type OgnlVariableExpressionEvaluator
(OGNL expression language).IStandardExpressionParser,
implemented by an object of type StandardExpressionParser.IStandardConversionService,
implemented by an object of type StandardConversionService.| Constructor and Description |
|---|
StandardDialect() |
| Modifier and Type | Method and Description |
|---|---|
static Set<IProcessor> |
createStandardProcessorsSet()
Create a the set of Standard processors, all of them freshly instanced.
|
protected Set<IDocTypeResolutionEntry> |
getAdditionalDocTypeResolutionEntries() |
protected Set<IDocTypeTranslation> |
getAdditionalDocTypeTranslations() |
Set<IProcessor> |
getAdditionalProcessors()
Retrieves the additional set of processors that has been set for this dialect, or null
if no additional processors have been set.
|
IStandardConversionService |
getConversionService()
Returns the Standard Conversion Service (implementation of
IStandardConversionService)
that is configured to be used at this instance of the Standard Dialect. |
Set<IDocTypeTranslation> |
getDocTypeTranslations()
Returns the set of DOCTYPE translations.
|
Map<String,Object> |
getExecutionAttributes()
Returns the execution attributes that will be set during executions
of the template engine.
|
IStandardExpressionParser |
getExpressionParser()
Returns the Thymeleaf Standard Expression parser (implementation of
IStandardExpressionParser)
that is configured to be used at this instance of the Standard Dialect. |
String |
getPrefix()
Returns the default dialect prefix (the one that will be used if none is explicitly
specified during dialect configuration).
|
Set<IProcessor> |
getProcessors()
Returns the set of processors.
|
Set<IDocTypeResolutionEntry> |
getSpecificDocTypeResolutionEntries() |
IStandardVariableExpressionEvaluator |
getVariableExpressionEvaluator()
Returns the variable expression evaluator (implementation of
IStandardVariableExpressionEvaluator)
that is configured to be used at this instance of the Standard Dialect. |
void |
setAdditionalProcessors(Set<IProcessor> additionalProcessors)
Sets an additional set of processors for this dialect, all of which will be
available within the same dialect prefix.
|
void |
setConversionService(IStandardConversionService conversionService)
Sets the Standard Conversion Service (implementation of
IStandardConversionService)
that should to be used at this instance of the Standard Dialect. |
void |
setExpressionParser(IStandardExpressionParser expressionParser)
Sets the Thymeleaf Standard Expression parser (implementation of
IStandardExpressionParser)
that should be used at this instance of the Standard Dialect. |
void |
setVariableExpressionEvaluator(IStandardVariableExpressionEvaluator variableExpressionEvaluator)
Sets the variable expression evaluator (implementation of
IStandardVariableExpressionEvaluator)
that should be used at this instance of the Standard Dialect. |
getDocTypeResolutionEntriesisLenientpublic static final String PREFIX
public static final boolean LENIENT
public static final String INLINER_LOCAL_VARIABLE
@Deprecated public static final String EXPRESSION_EVALUATOR_EXECUTION_ATTRIBUTE
StandardExpressions class. Will be removed in 3.0public static final DocTypeIdentifier XHTML1_STRICT_THYMELEAF1_SYSTEMID
public static final DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAF1_SYSTEMID
public static final DocTypeIdentifier XHTML1_FRAMESET_THYMELEAF1_SYSTEMID
public static final DocTypeIdentifier XHTML11_THYMELEAF1_SYSTEMID
public static final DocTypeIdentifier XHTML1_STRICT_THYMELEAF2_SYSTEMID
public static final DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAF2_SYSTEMID
public static final DocTypeIdentifier XHTML1_FRAMESET_THYMELEAF2_SYSTEMID
public static final DocTypeIdentifier XHTML11_THYMELEAF2_SYSTEMID
public static final DocTypeIdentifier XHTML1_STRICT_THYMELEAF3_SYSTEMID
public static final DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAF3_SYSTEMID
public static final DocTypeIdentifier XHTML1_FRAMESET_THYMELEAF3_SYSTEMID
public static final DocTypeIdentifier XHTML11_THYMELEAF3_SYSTEMID
public static final DocTypeIdentifier XHTML1_STRICT_THYMELEAF4_SYSTEMID
public static final DocTypeIdentifier XHTML1_TRANSITIONAL_THYMELEAF4_SYSTEMID
public static final DocTypeIdentifier XHTML1_FRAMESET_THYMELEAF4_SYSTEMID
public static final DocTypeIdentifier XHTML11_THYMELEAF4_SYSTEMID
public static final IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML11_THYMELEAF_1_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML11_THYMELEAF_2_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML11_THYMELEAF_3_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY
public static final IDocTypeResolutionEntry XHTML11_THYMELEAF_4_DOC_TYPE_RESOLUTION_ENTRY
public static final Set<IDocTypeResolutionEntry> DOC_TYPE_RESOLUTION_ENTRIES
public static final IDocTypeTranslation XHTML1_STRICT_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_TRANSITIONAL_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_FRAMESET_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML11_THYMELEAF_1_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_STRICT_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_TRANSITIONAL_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_FRAMESET_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML11_THYMELEAF_2_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_STRICT_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_TRANSITIONAL_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_FRAMESET_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML11_THYMELEAF_3_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_STRICT_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_TRANSITIONAL_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML1_FRAMESET_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final IDocTypeTranslation XHTML11_THYMELEAF_4_DOC_TYPE_TRANSLATION
public static final Set<IDocTypeTranslation> DOC_TYPE_TRANSLATIONS
public String getPrefix()
IDialectReturns the default dialect prefix (the one that will be used if none is explicitly specified during dialect configuration).
If null is returned, then every attribute and/or element is considered processable by the processors in the dialect that apply to that kind of node (elements with their attributes), and not only those that start with a specific prefix.
Prefixes are not exclusive to a dialect: several dialects can declare the same prefix, effectively acting as an aggregate dialect.
public IStandardVariableExpressionEvaluator getVariableExpressionEvaluator()
Returns the variable expression evaluator (implementation of IStandardVariableExpressionEvaluator)
that is configured to be used at this instance of the Standard Dialect.
This is used for executing all ${...} and *{...} expressions in Thymeleaf Standard Expressions.
This will be OgnlVariableExpressionEvaluator by default. When using the Spring Standard
Dialect, this will be a SpringEL-based implementation.
public void setVariableExpressionEvaluator(IStandardVariableExpressionEvaluator variableExpressionEvaluator)
Sets the variable expression evaluator (implementation of IStandardVariableExpressionEvaluator)
that should be used at this instance of the Standard Dialect.
This is used for executing all ${...} and *{...} expressions in Thymeleaf Standard Expressions.
This will be OgnlVariableExpressionEvaluator.INSTANCE by default. When using the Spring Standard
Dialect, this will be a SpringEL-based implementation.
This method has no effect once the Template Engine has been initialized.
Objects set here should be thread-safe.
variableExpressionEvaluator - the new Standard Variable Expression Evaluator object. Cannot be null.public IStandardExpressionParser getExpressionParser()
Returns the Thymeleaf Standard Expression parser (implementation of IStandardExpressionParser)
that is configured to be used at this instance of the Standard Dialect.
This will be StandardExpressionParser by default.
public void setExpressionParser(IStandardExpressionParser expressionParser)
Sets the Thymeleaf Standard Expression parser (implementation of IStandardExpressionParser)
that should be used at this instance of the Standard Dialect.
This will be StandardExpressionParser by default.
This method has no effect once the Template Engine has been initialized.
Objects set here should be thread-safe.
expressionParser - the Standard Expression Parser object to be used. Cannot be null.public IStandardConversionService getConversionService()
Returns the Standard Conversion Service (implementation of IStandardConversionService)
that is configured to be used at this instance of the Standard Dialect.
This will be StandardConversionService by default. In Spring environments, this will default
to an implementation delegating on Spring's own ConversionService implementation.
public void setConversionService(IStandardConversionService conversionService)
Sets the Standard Conversion Service (implementation of IStandardConversionService)
that should to be used at this instance of the Standard Dialect.
This will be StandardConversionService by default. In Spring environments, this will default
to an implementation delegating on Spring's own ConversionService implementation.
This method has no effect once the Template Engine has been initialized.
Objects set here should be thread-safe.
conversionService - the Standard ConversionService object to be used. Cannot be null.public Set<IDocTypeTranslation> getDocTypeTranslations()
IDialectReturns the set of DOCTYPE translations.
getDocTypeTranslations in interface IDialectgetDocTypeTranslations in class AbstractDialectprotected Set<IDocTypeTranslation> getAdditionalDocTypeTranslations()
public Set<IDocTypeResolutionEntry> getSpecificDocTypeResolutionEntries()
getSpecificDocTypeResolutionEntries in class AbstractXHTMLEnabledDialectprotected Set<IDocTypeResolutionEntry> getAdditionalDocTypeResolutionEntries()
public Set<IProcessor> getProcessors()
IDialectReturns the set of processors.
getProcessors in interface IDialectgetProcessors in class AbstractDialectpublic final Set<IProcessor> getAdditionalProcessors()
Retrieves the additional set of processors that has been set for this dialect, or null if no additional processors have been set.
public final void setAdditionalProcessors(Set<IProcessor> additionalProcessors)
Sets an additional set of processors for this dialect, all of which will be available within the same dialect prefix.
This operation can only be executed before processing templates for the first time. Once a template is processed, the template engine is considered to be initialized, and from then on any attempt to change its configuration will result in an exception.
additionalProcessors - the set of IProcessor objects to be added.public Map<String,Object> getExecutionAttributes()
IDialectReturns the execution attributes that will be set during executions of the template engine.
If more than one dialect are set, all of their execution attributes will be added to the available execution attributes map.
getExecutionAttributes in interface IDialectgetExecutionAttributes in class AbstractDialectpublic static Set<IProcessor> createStandardProcessorsSet()
Create a the set of Standard processors, all of them freshly instanced.
Copyright © 2016 The THYMELEAF team. All rights reserved.