public enum ConfigType extends Enum<ConfigType>
| Enum Constant and Description |
|---|
HTML
config type is "html"
|
JSON
config type is "json"
|
PROPERTIES
config type is "properties"
|
TEXT
config type is "text"
|
XML
config type is "xml"
|
YAML
config type is "yaml"
|
| Modifier and Type | Method and Description |
|---|---|
String |
getType() |
static ConfigType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
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 ConfigType[] values()
for (ConfigType c : ConfigType.values()) System.out.println(c);
public static ConfigType 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 getType()
Copyright © 2018–2019 Alibaba Group. All rights reserved.