Package org.thymeleaf.templatemode
Enum TemplateMode
- All Implemented Interfaces:
Serializable
,Comparable<TemplateMode>
- Since:
- 3.0.0
- Author:
- Daniel Fernández
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionDeprecated.Deprecated in 3.0.0.Deprecated.Deprecated in 3.0.0.Deprecated.Deprecated in 3.0.0.Deprecated.Deprecated in 3.0.0.Deprecated.Deprecated in 3.0.0. -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
isMarkup()
boolean
isText()
static TemplateMode
static TemplateMode
Returns the enum constant of this type with the specified name.static TemplateMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
HTML
-
XML
-
TEXT
-
JAVASCRIPT
-
CSS
-
RAW
-
HTML5
Deprecated.Deprecated in 3.0.0. UseHTML
instead. Will be REMOVED in 3.1Provided only for legacy compatibility reasons for old XML-based configurations (e.g. Spring). Never use this value directly. Only to be used internally atAbstractConfigurableTemplateResolver
implementations. -
LEGACYHTML5
Deprecated.Deprecated in 3.0.0. UseHTML
instead. Will be REMOVED in 3.1Provided only for legacy compatibility reasons for old XML-based configurations (e.g. Spring). Never use this value directly. Only to be used internally atAbstractConfigurableTemplateResolver
implementations. -
XHTML
Deprecated.Deprecated in 3.0.0. UseHTML
instead. Will be REMOVED in 3.1Provided only for legacy compatibility reasons for old XML-based configurations (e.g. Spring). Never use this value directly. Only to be used internally atAbstractConfigurableTemplateResolver
implementations. -
VALIDXHTML
Deprecated.Deprecated in 3.0.0. UseHTML
instead. Will be REMOVED in 3.1Provided only for legacy compatibility reasons for old XML-based configurations (e.g. Spring). Never use this value directly. Only to be used internally atAbstractConfigurableTemplateResolver
implementations. -
VALIDXML
Deprecated.Deprecated in 3.0.0. UseXML
instead. Will be REMOVED in 3.1Provided only for legacy compatibility reasons for old XML-based configurations (e.g. Spring). Never use this value directly. Only to be used internally atAbstractConfigurableTemplateResolver
implementations.
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
isMarkup
public boolean isMarkup() -
isText
public boolean isText() -
isCaseSensitive
public boolean isCaseSensitive() -
parse
-