Package com.sodius.mdw.server.launch
Enum LogEntryKind
- java.lang.Object
-
- java.lang.Enum<LogEntryKind>
-
- com.sodius.mdw.server.launch.LogEntryKind
-
- All Implemented Interfaces:
Serializable
,Comparable<LogEntryKind>
public enum LogEntryKind extends Enum<LogEntryKind>
Describes the type of log messages.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getName()
Returns the name of log type.String
toString()
static LogEntryKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static LogEntryKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
OUTPUT
public static final LogEntryKind OUTPUT
A regular output log message.
-
WARNING
public static final LogEntryKind WARNING
A log identifying a warning message.
-
ERROR
public static final LogEntryKind ERROR
A log identifying an error message.
-
PROGRESS
public static final LogEntryKind PROGRESS
A log identifying a progress information.
-
-
Method Detail
-
values
public static LogEntryKind[] 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 (LogEntryKind c : LogEntryKind.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static LogEntryKind 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
-
getName
public String getName()
Returns the name of log type.- Returns:
- the name of log type.
-
toString
public String toString()
- Overrides:
toString
in classEnum<LogEntryKind>
-
-