Package org.miaixz.bus.extra.template
Enum Class TemplateConfig.ResourceMode
java.lang.Object
java.lang.Enum<TemplateConfig.ResourceMode>
org.miaixz.bus.extra.template.TemplateConfig.ResourceMode
- All Implemented Interfaces:
Serializable,Comparable<TemplateConfig.ResourceMode>,Constable
- Enclosing class:
TemplateConfig
资源加载方式枚举
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic TemplateConfig.ResourceModeReturns the enum constant of this class with the specified name.static TemplateConfig.ResourceMode[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CLASSPATH
从ClassPath加载模板 -
FILE
从File目录加载模板 -
WEB_ROOT
从WebRoot目录加载模板 -
STRING
从模板文本加载模板 -
COMPOSITE
复合加载模板(分别从File、ClassPath、Web-root、String方式尝试查找模板)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-