org.thymeleaf.dom
Enum Element.RepresentationInTemplate

Object
  extended by Enum<Element.RepresentationInTemplate>
      extended by org.thymeleaf.dom.Element.RepresentationInTemplate
All Implemented Interfaces:
Serializable, Comparable<Element.RepresentationInTemplate>
Enclosing class:
Element

public static enum Element.RepresentationInTemplate
extends Enum<Element.RepresentationInTemplate>

Specifies whether this element was a standalone element at the original template file, or maybe an open element with a closing tag, or just an open element (non-XML-well-formed).

Since:
2.0.14
Author:
Daniel Fernández

Enum Constant Summary
ONLY_OPEN
           
OPEN_AND_CLOSE_EMPTY
           
OPEN_AND_CLOSE_NONEMPTY
           
STANDALONE
           
 
Method Summary
static Element.RepresentationInTemplate valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Element.RepresentationInTemplate[] 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, toString, valueOf
 
Methods inherited from class Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

STANDALONE

public static final Element.RepresentationInTemplate STANDALONE

OPEN_AND_CLOSE_NONEMPTY

public static final Element.RepresentationInTemplate OPEN_AND_CLOSE_NONEMPTY

OPEN_AND_CLOSE_EMPTY

public static final Element.RepresentationInTemplate OPEN_AND_CLOSE_EMPTY

ONLY_OPEN

public static final Element.RepresentationInTemplate ONLY_OPEN
Method Detail

values

public static Element.RepresentationInTemplate[] 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 (Element.RepresentationInTemplate c : Element.RepresentationInTemplate.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static Element.RepresentationInTemplate 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


Copyright © 2013 The THYMELEAF team. All Rights Reserved.