Enum FileType
- All Implemented Interfaces:
Serializable,Comparable<FileType>,java.lang.constant.Constable
public enum FileType extends Enum<FileType>
The FileType enumeration.
-
Nested Class Summary
-
Enum Constant Summary
-
Field Summary
Fields Modifier and Type Field Description static StringDIRECTORY_BOOTstatic StringDIRECTORY_CONFIGstatic StringDIRECTORY_LOGstatic StringDIRECTORY_ROOTstatic StringDIRECTORY_SEEDstatic StringDIRECTORY_WEATHER -
Method Summary
Modifier and Type Method Description StringgetContentType()FilegetDirectory(User user)FilegetFile(User user, String name)static FileTypevalueOf(String name)Returns the enum constant of this type with the specified name.static FileType[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
Field Details
-
DIRECTORY_ROOT
- See Also:
- Constant Field Values
-
DIRECTORY_LOG
- See Also:
- Constant Field Values
-
DIRECTORY_SEED
- See Also:
- Constant Field Values
-
DIRECTORY_BOOT
- See Also:
- Constant Field Values
-
DIRECTORY_CONFIG
- See Also:
- Constant Field Values
-
DIRECTORY_WEATHER
- See Also:
- Constant Field Values
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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
-
getContentType
-
getDirectory
-
getFile
-