org.thymeleaf
Enum TemplateMode

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

Deprecated. This enum has been deprecated as of 2.0.0. Template modes are now specified as Strings instead of enums (for enhanced extensibility). See TemplateResolver.setTemplateMode(String).

@Deprecated
public enum TemplateMode
extends Enum<TemplateMode>

Old enum class for template modes. This enum is not used anymore for specifying template modes, as these are now specified as a String.

Since:
1.0
Author:
Daniel Fernández

Enum Constant Summary
HTML5
          Deprecated.  
LEGACYHTML5
          Deprecated.  
VALIDXHTML
          Deprecated.  
VALIDXML
          Deprecated.  
XHTML
          Deprecated.  
XML
          Deprecated.  
 
Method Summary
static TemplateMode valueOf(String name)
          Deprecated. Returns the enum constant of this type with the specified name.
static TemplateMode[] values()
          Deprecated. 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, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

XML

public static final TemplateMode XML
Deprecated. 

VALIDXML

public static final TemplateMode VALIDXML
Deprecated. 

XHTML

public static final TemplateMode XHTML
Deprecated. 

VALIDXHTML

public static final TemplateMode VALIDXHTML
Deprecated. 

LEGACYHTML5

public static final TemplateMode LEGACYHTML5
Deprecated. 

HTML5

public static final TemplateMode HTML5
Deprecated. 
Method Detail

values

public static TemplateMode[] values()
Deprecated. 
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)
Deprecated. 
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


Copyright © 2012 The THYMELEAF team. All Rights Reserved.