com.google.sitebricks
Enum Template.Kind
java.lang.Object
java.lang.Enum<Template.Kind>
com.google.sitebricks.Template.Kind
- All Implemented Interfaces:
- Serializable, Comparable<Template.Kind>
- Enclosing class:
- Template
public static enum Template.Kind
- extends Enum<Template.Kind>
|
Method Summary |
static Template.Kind |
kindOf(String template)
Returns whether a given template should be treated as html, xml or flat
(currently by looking at file extension) |
static Template.Kind |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static Template.Kind[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared. |
HTML
public static final Template.Kind HTML
XML
public static final Template.Kind XML
FLAT
public static final Template.Kind FLAT
MVEL
public static final Template.Kind MVEL
FREEMARKER
public static final Template.Kind FREEMARKER
values
public static Template.Kind[] 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 (Template.Kind c : Template.Kind.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static Template.Kind 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
kindOf
public static Template.Kind kindOf(String template)
- Returns whether a given template should be treated as html, xml or flat
(currently by looking at file extension)
Copyright © 2014. All rights reserved.