public abstract class AbstractDialect extends Object implements IDialect
Abstract implementation of IDialect
that returns empty
sets for all dialect components.
Modifier | Constructor and Description |
---|---|
protected |
AbstractDialect() |
Modifier and Type | Method and Description |
---|---|
Set<IDocTypeResolutionEntry> |
getDocTypeResolutionEntries()
Returns the set of DOCTYPE resolution entries.
|
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.
|
Set<IProcessor> |
getProcessors()
Returns the set of processors.
|
boolean |
isLenient()
Deprecated.
The leniency flag is not used anymore since 2.1.0. Will be removed in 3.0. This
method was removed from the IDialect interface and added here as a default implementation
in order to allow backwards-compatibility of dialects.
|
public Set<IProcessor> getProcessors()
IDialect
Returns the set of processors.
getProcessors
in interface IDialect
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
public Set<IDocTypeTranslation> getDocTypeTranslations()
IDialect
Returns the set of DOCTYPE translations.
getDocTypeTranslations
in interface IDialect
public Set<IDocTypeResolutionEntry> getDocTypeResolutionEntries()
IDialect
Returns the set of DOCTYPE resolution entries.
getDocTypeResolutionEntries
in interface IDialect
@Deprecated public boolean isLenient()
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.
Copyright © 2016 The THYMELEAF team. All rights reserved.