public static enum Resource.Format extends Enum<Resource.Format>
| Enum Constant and Description |
|---|
INI_FILE |
JSON_FILE |
MAP |
PROPERTIES |
PROPERTIES_FILE |
XML_FILE |
| Modifier and Type | Method and Description |
|---|---|
Class<? extends ConfigLoader> |
getLoaderClass() |
static Resource.Format |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Resource.Format[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resource.Format XML_FILE
public static final Resource.Format INI_FILE
public static final Resource.Format JSON_FILE
public static final Resource.Format PROPERTIES_FILE
public static final Resource.Format MAP
public static final Resource.Format PROPERTIES
public static Resource.Format[] values()
for (Resource.Format c : Resource.Format.values()) System.out.println(c);
public static Resource.Format 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 Class<? extends ConfigLoader> getLoaderClass()
Copyright © 2014–2017 The Apache Software Foundation. All rights reserved.