public enum TemplateMode extends Enum<TemplateMode>
Enum Constant and Description |
---|
CSS |
HTML |
HTML5
Deprecated.
Deprecated in 3.0.0. Use
HTML instead. Will be REMOVED in 3.1 |
JAVASCRIPT |
LEGACYHTML5
Deprecated.
Deprecated in 3.0.0. Use
HTML instead. Will be REMOVED in 3.1 |
RAW |
TEXT |
VALIDXHTML
Deprecated.
Deprecated in 3.0.0. Use
HTML instead. Will be REMOVED in 3.1 |
VALIDXML
Deprecated.
Deprecated in 3.0.0. Use
XML instead. Will be REMOVED in 3.1 |
XHTML
Deprecated.
Deprecated in 3.0.0. Use
HTML instead. Will be REMOVED in 3.1 |
XML |
Modifier and Type | Method and Description |
---|---|
boolean |
isCaseSensitive() |
boolean |
isMarkup() |
boolean |
isText() |
static TemplateMode |
parse(String mode) |
static TemplateMode |
valueOf(String name)
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.
|
public static final TemplateMode HTML
public static final TemplateMode XML
public static final TemplateMode TEXT
public static final TemplateMode JAVASCRIPT
public static final TemplateMode CSS
public static final TemplateMode RAW
@Deprecated public static final TemplateMode HTML5
HTML
instead. Will be REMOVED in 3.1AbstractConfigurableTemplateResolver
implementations.@Deprecated public static final TemplateMode LEGACYHTML5
HTML
instead. Will be REMOVED in 3.1AbstractConfigurableTemplateResolver
implementations.@Deprecated public static final TemplateMode XHTML
HTML
instead. Will be REMOVED in 3.1AbstractConfigurableTemplateResolver
implementations.@Deprecated public static final TemplateMode VALIDXHTML
HTML
instead. Will be REMOVED in 3.1AbstractConfigurableTemplateResolver
implementations.@Deprecated public static final TemplateMode VALIDXML
XML
instead. Will be REMOVED in 3.1AbstractConfigurableTemplateResolver
implementations.public static TemplateMode[] values()
for (TemplateMode c : TemplateMode.values()) System.out.println(c);
public static TemplateMode valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic boolean isMarkup()
public boolean isText()
public boolean isCaseSensitive()
public static TemplateMode parse(String mode)
Copyright © 2016 The THYMELEAF team. All rights reserved.