public static enum TemplateBean.Type extends Enum<TemplateBean.Type>
Enum Constant and Description |
---|
EXTERNALLY_CALLABLE
Externally callable templates.
|
LAYOUT
Layouts.
|
PAGELET
Pagelets.
|
RAW_DATA
Raw data.
|
Modifier and Type | Method and Description |
---|---|
String |
getCode()
Returns the code associated with this template type.
|
static TemplateBean.Type |
toEnum(String code) |
static TemplateBean.Type |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemplateBean.Type[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared.
|
public static final TemplateBean.Type LAYOUT
public static final TemplateBean.Type EXTERNALLY_CALLABLE
public static final TemplateBean.Type PAGELET
public static final TemplateBean.Type RAW_DATA
public static TemplateBean.Type[] values()
for (TemplateBean.Type c : TemplateBean.Type.values()) System.out.println(c);
public static TemplateBean.Type 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 getCode()
public static TemplateBean.Type toEnum(String code)