Enum FileType
- java.lang.Object
-
- java.lang.Enum<FileType>
-
- org.powertac.visualizer.domain.enumeration.FileType
-
- All Implemented Interfaces:
Serializable,Comparable<FileType>
public enum FileType extends Enum<FileType>
The FileType enumeration.
-
-
Field Summary
Fields Modifier and Type Field Description static StringDIRECTORY_BOOTstatic StringDIRECTORY_CONFIGstatic StringDIRECTORY_LOGstatic StringDIRECTORY_ROOTstatic StringDIRECTORY_SEEDstatic StringDIRECTORY_WEATHER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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 Detail
-
TRACE
public static final FileType TRACE
-
STATE
public static final FileType STATE
-
SEED
public static final FileType SEED
-
BOOT
public static final FileType BOOT
-
CONFIG
public static final FileType CONFIG
-
WEATHER
public static final FileType WEATHER
-
ANY
public static final FileType ANY
-
-
Field Detail
-
DIRECTORY_ROOT
public static final String DIRECTORY_ROOT
- See Also:
- Constant Field Values
-
DIRECTORY_LOG
public static final String DIRECTORY_LOG
- See Also:
- Constant Field Values
-
DIRECTORY_SEED
public static final String DIRECTORY_SEED
- See Also:
- Constant Field Values
-
DIRECTORY_BOOT
public static final String DIRECTORY_BOOT
- See Also:
- Constant Field Values
-
DIRECTORY_CONFIG
public static final String DIRECTORY_CONFIG
- See Also:
- Constant Field Values
-
DIRECTORY_WEATHER
public static final String DIRECTORY_WEATHER
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FileType[] 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 (FileType c : FileType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FileType 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
-
getContentType
public final String getContentType()
-
-