public final class DialectConfiguration extends Object
Configuration 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
Constructor and Description |
---|
DialectConfiguration(IDialect dialect) |
DialectConfiguration(String prefix,
IDialect dialect) |
Modifier and Type | Method and Description |
---|---|
IDialect |
getDialect() |
String |
getPrefix() |
boolean |
isPrefixSpecified() |
public DialectConfiguration(IDialect dialect)
Copyright © 2016 The THYMELEAF team. All rights reserved.