public enum ConfigType extends Enum<ConfigType>
| 枚举常量和说明 |
|---|
HTML
config type is "html".
|
JSON
config type is "json".
|
PROPERTIES
config type is "properties".
|
TEXT
config type is "text".
|
UNSET
not a real type.
|
XML
config type is "xml".
|
YAML
config type is "yaml".
|
| 限定符和类型 | 方法和说明 |
|---|---|
static ConfigType |
getDefaultType() |
String |
getType() |
static Boolean |
isValidType(String type)
check input type is valid.
|
static ConfigType |
valueOf(String name)
返回带有指定名称的该类型的枚举常量。
|
static ConfigType[] |
values()
按照声明该枚举类型的常量的顺序, 返回
包含这些常量的数组。
|
public static final ConfigType PROPERTIES
public static final ConfigType XML
public static final ConfigType JSON
public static final ConfigType TEXT
public static final ConfigType HTML
public static final ConfigType YAML
public static final ConfigType UNSET
public static ConfigType[] values()
for (ConfigType c : ConfigType.values()) System.out.println(c);
public static ConfigType valueOf(String name)
name - 要返回的枚举常量的名称。IllegalArgumentException - 如果该枚举类型没有带有指定名称的常量NullPointerException - 如果参数为空值public String getType()
public static ConfigType getDefaultType()
Copyright © 2018–2021 Alibaba Group. All rights reserved.