|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.thymeleaf.dialect.AbstractDialect org.thymeleaf.dialect.AbstractXHTMLEnabledDialect org.thymeleaf.standard.StandardDialect
public class StandardDialect
The Standard Dialect, default implementation of IDialect
.
StandardAltTitleAttrProcessor
StandardAttrAttrProcessor
StandardAttrappendAttrProcessor
StandardAttrprependAttrProcessor
StandardCaseAttrProcessor
StandardClassappendAttrProcessor
StandardConditionalFixedValueAttrProcessor
StandardDOMEventAttributeModifierAttrProcessor
StandardEachAttrProcessor
StandardFragmentAttrProcessor
StandardObjectAttrProcessor
StandardIfAttrProcessor
StandardInlineAttrProcessor
StandardUnlessAttrProcessor
StandardIncludeFragmentAttrProcessor
StandardLangXmlLangAttrProcessor
StandardRemoveAttrProcessor
StandardSingleNonRemovableAttributeModifierAttrProcessor
StandardSingleRemovableAttributeModifierAttrProcessor
StandardSubstituteByFragmentAttrProcessor
StandardSwitchAttrProcessor
StandardTextAttrProcessor
StandardUtextAttrProcessor
StandardWithAttrProcessor
StandardXmlBaseAttrProcessor
StandardXmlLangAttrProcessor
StandardXmlSpaceAttrProcessor
StandardExpressionExecutor
with expression evaluator of type OgnlVariableExpressionEvaluator
(OGNL expression language).StandardExpressionParser
.
Constructor Summary | |
---|---|
StandardDialect()
|
Method Summary | |
---|---|
static Set<IProcessor> |
createStandardProcessorsSet()
Create a the set of Standard processors, all of them freshly instanced. |
static Set<IProcessor> |
externalAdditionalProcessors(StandardDialect dialect)
Deprecated. Utility ad-hoc static method needed while getAdditionalProcessors() is
not set to public final. Will be removed in 2.1. |
protected Set<IDocTypeResolutionEntry> |
getAdditionalDocTypeResolutionEntries()
|
protected Set<IDocTypeTranslation> |
getAdditionalDocTypeTranslations()
|
protected Set<IProcessor> |
getAdditionalProcessors()
Deprecated. Override getProcessors() , call super.getProcessors() and
modify the returned set instead. Will be modified to public final
in 2.1. |
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. |
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. |
protected Set<Class<? extends IProcessor>> |
getRemovedProcessors()
Deprecated. Override getProcessors() , call super.getProcessors() and
modify the returned set instead. Will be removed in 2.1. |
Set<IDocTypeResolutionEntry> |
getSpecificDocTypeResolutionEntries()
|
boolean |
isLenient()
Returns whether the dialect is lenient or not. |
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. |
Methods inherited from class org.thymeleaf.dialect.AbstractXHTMLEnabledDialect |
---|
getDocTypeResolutionEntries |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PREFIX
public static final boolean LENIENT
public static final String INLINER_LOCAL_VARIABLE
public static final String EXPRESSION_EVALUATOR_EXECUTION_ATTRIBUTE
public 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 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 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 Set<IDocTypeTranslation> DOC_TYPE_TRANSLATIONS
Constructor Detail |
---|
public StandardDialect()
Method Detail |
---|
public String getPrefix()
IDialect
Returns 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 boolean isLenient()
IDialect
Returns whether the dialect is lenient or not. If the dialect is not lenient, then after execution of a template no attributes or elements should exist in the result with the prefix specified by this dialect (an error is raised if such thing happens).
For non-lenient dialects, any xmlns:{prefix} attributes in the document root or any other element will be removed from output. These attributes will not be removed for lenient dialects.
When several dialects act on the same prefix, a prefix will be considered to be lenient if any of the dialects for that prefix is lenient.
Unless it is really required (for instance, in dialects with null prefix), dialects should be non-lenient.
public Set<IDocTypeTranslation> getDocTypeTranslations()
IDialect
Returns the set of DOCTYPE translations.
getDocTypeTranslations
in interface IDialect
getDocTypeTranslations
in class AbstractDialect
protected Set<IDocTypeTranslation> getAdditionalDocTypeTranslations()
public Set<IDocTypeResolutionEntry> getSpecificDocTypeResolutionEntries()
getSpecificDocTypeResolutionEntries
in class AbstractXHTMLEnabledDialect
protected Set<IDocTypeResolutionEntry> getAdditionalDocTypeResolutionEntries()
public Set<IProcessor> getProcessors()
IDialect
Returns the set of processors.
getProcessors
in interface IDialect
getProcessors
in class AbstractDialect
@Deprecated protected Set<IProcessor> getAdditionalProcessors()
getProcessors()
, call super.getProcessors() and
modify the returned set instead. Will be modified to public final
in 2.1.
public 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.@Deprecated public static Set<IProcessor> externalAdditionalProcessors(StandardDialect dialect)
getAdditionalProcessors()
is
not set to public final. Will be removed in 2.1.
@Deprecated protected Set<Class<? extends IProcessor>> getRemovedProcessors()
getProcessors()
, call super.getProcessors() and
modify the returned set instead. Will be removed in 2.1.
public Map<String,Object> getExecutionAttributes()
IDialect
Returns 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 IDialect
getExecutionAttributes
in class AbstractDialect
public static Set<IProcessor> createStandardProcessorsSet()
Create a the set of Standard processors, all of them freshly instanced.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |