org.thymeleaf
Enum TemplateMode

Object
  extended by Enum<TemplateMode>
      extended by org.thymeleaf.TemplateMode
All Implemented Interfaces:
Serializable, Comparable<TemplateMode>

public enum TemplateMode
extends Enum<TemplateMode>

Since:
1.0
Author:
Daniel Fernández

Enum Constant Summary
HTML5
           
LEGACYHTML5
           
VALIDXHTML
           
VALIDXML
           
XHTML
           
XML
           
 
Method Summary
 String getName()
           
 boolean isHTML5()
           
 boolean isValidating()
           
 boolean isWeb()
           
 boolean isXHTML()
           
 boolean isXML()
           
 String toString()
           
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.
 
Methods inherited from class Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

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
Method Detail

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.