public enum EContentType extends Enum<EContentType>
Content type of resulting template.
Enum Constant and Description |
---|
HTML |
TEXT_PLAIN |
Modifier and Type | Method and Description |
---|---|
String |
getMediaType()
Gets the media type for this content type.
|
org.thymeleaf.templatemode.TemplateMode |
getTemplateMode()
Get the
TemplateMode for this content type. |
static EContentType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EContentType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EContentType TEXT_PLAIN
public static final EContentType HTML
public static EContentType[] values()
for (EContentType c : EContentType.values()) System.out.println(c);
public static EContentType 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 String getMediaType()
Gets the media type for this content type.
public org.thymeleaf.templatemode.TemplateMode getTemplateMode()
Get the TemplateMode
for this content type.
TemplateMode
related to this element.Copyright © 2021 Albirar. All rights reserved.