@InterfaceAudience.Public @InterfaceStability.Unstable public enum ConfigFormat extends Enum<ConfigFormat>
Enum Constant and Description |
---|
HADOOP_XML |
JSON |
PROPERTIES |
TEMPLATE |
XML |
YAML |
Modifier and Type | Method and Description |
---|---|
String |
getSuffix() |
static ConfigFormat |
resolve(String type)
Get a matching format or null
|
String |
toString() |
static ConfigFormat |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ConfigFormat[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ConfigFormat JSON
public static final ConfigFormat PROPERTIES
public static final ConfigFormat XML
public static final ConfigFormat HADOOP_XML
public static final ConfigFormat TEMPLATE
public static final ConfigFormat YAML
public static ConfigFormat[] values()
for (ConfigFormat c : ConfigFormat.values()) System.out.println(c);
public static ConfigFormat 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 getSuffix()
public String toString()
toString
in class Enum<ConfigFormat>
public static ConfigFormat resolve(String type)
type
- Copyright © 2023 Apache Software Foundation. All rights reserved.