Class DialectConfiguration
- java.lang.Object
-
- org.thymeleaf.DialectConfiguration
-
public final class DialectConfiguration extends java.lang.ObjectConfiguration class for a specific
IDialect. Objects of this class specify a dialect to be used at a template engine, along with the prefix to be applied to it.When a dialect is specified WITH a prefix, this means we want that dialect's processors to match on attributes and elements that have such prefix in their names. This configured prefix will override the default prefix specified by the dialect instance itself. If the specified prefix is null, this will mean the processors will apply on elements/attributes with no prefix.
When a dialect is specified WITHOUT a prefix, this means we will just use the default prefix returned by the dialect instance itself, if it applies (i.e. if it implements
IProcessorDialect).Note a class with this name existed since 1.0, but it was completely reimplemented in Thymeleaf 3.0
- Since:
- 3.0.0
-
-
Field Summary
Fields Modifier and Type Field Description private IDialectdialectprivate java.lang.Stringprefixprivate booleanprefixSpecified
-
Constructor Summary
Constructors Constructor Description DialectConfiguration(java.lang.String prefix, IDialect dialect)DialectConfiguration(IDialect dialect)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description IDialectgetDialect()java.lang.StringgetPrefix()booleanisPrefixSpecified()
-
-
-
Field Detail
-
prefixSpecified
private final boolean prefixSpecified
-
prefix
private final java.lang.String prefix
-
dialect
private final IDialect dialect
-
-
Method Detail
-
getDialect
public IDialect getDialect()
-
getPrefix
public java.lang.String getPrefix()
-
isPrefixSpecified
public boolean isPrefixSpecified()
-
-