public static enum TemplateConfig.ResourceMode extends Enum<TemplateConfig.ResourceMode>
Enum Constant and Description |
---|
CLASSPATH
从ClassPath加载模板
|
COMPOSITE
复合加载模板(分别从File、ClassPath、Web-root、String方式尝试查找模板)
|
FILE
从File目录加载模板
|
STRING
从模板文本加载模板
|
WEB_ROOT
从WebRoot目录加载模板
|
Modifier and Type | Method and Description |
---|---|
static TemplateConfig.ResourceMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static TemplateConfig.ResourceMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final TemplateConfig.ResourceMode CLASSPATH
public static final TemplateConfig.ResourceMode FILE
public static final TemplateConfig.ResourceMode WEB_ROOT
public static final TemplateConfig.ResourceMode STRING
public static final TemplateConfig.ResourceMode COMPOSITE
public static TemplateConfig.ResourceMode[] values()
for (TemplateConfig.ResourceMode c : TemplateConfig.ResourceMode.values()) System.out.println(c);
public static TemplateConfig.ResourceMode 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 nullCopyright © 2024. All rights reserved.