org.thymeleaf
Enum TemplateMode
Object
Enum<TemplateMode>
org.thymeleaf.TemplateMode
- All Implemented Interfaces:
- Serializable, Comparable<TemplateMode>
public enum TemplateMode
- extends Enum<TemplateMode>
- Since:
- 1.0
- Author:
- Daniel Fernández
XML
public static final TemplateMode XML
VALIDXML
public static final TemplateMode VALIDXML
XHTML
public static final TemplateMode XHTML
VALIDXHTML
public static final TemplateMode VALIDXHTML
LEGACYHTML5
public static final TemplateMode LEGACYHTML5
HTML5
public static final TemplateMode HTML5
values
public static TemplateMode[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (TemplateMode c : TemplateMode.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static TemplateMode valueOf(String name)
- 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 name
NullPointerException
- if the argument is null
getName
public String getName()
isValidating
public boolean isValidating()
isWeb
public boolean isWeb()
isXML
public boolean isXML()
isXHTML
public boolean isXHTML()
isHTML5
public boolean isHTML5()
toString
public String toString()
- Overrides:
toString
in class Enum<TemplateMode>
Copyright © 2012 The THYMELEAF team. All Rights Reserved.