Enum FileTypeEnum
- java.lang.Object
-
- java.lang.Enum<FileTypeEnum>
-
- com.alibaba.nacos.config.server.enums.FileTypeEnum
-
- All Implemented Interfaces:
Serializable,Comparable<FileTypeEnum>
public enum FileTypeEnum extends Enum<FileTypeEnum>
- Author:
- klw
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetFileType()static FileTypeEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static FileTypeEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
YML
public static final FileTypeEnum YML
-
YAML
public static final FileTypeEnum YAML
-
TXT
public static final FileTypeEnum TXT
-
TEXT
public static final FileTypeEnum TEXT
-
JSON
public static final FileTypeEnum JSON
-
XML
public static final FileTypeEnum XML
-
HTM
public static final FileTypeEnum HTM
-
HTML
public static final FileTypeEnum HTML
-
PROPERTIES
public static final FileTypeEnum PROPERTIES
-
-
Method Detail
-
values
public static FileTypeEnum[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (FileTypeEnum c : FileTypeEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileTypeEnum valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getFileType
public String getFileType()
-
-