public enum LogMessage extends java.lang.Enum<LogMessage>
Logger
Enum Constant and Description |
---|
ALREADY_CONTAIN |
CANT_CREATE_FILE |
CANT_FIND |
CANT_PARSE |
CANT_READ |
CANT_REASSIGN |
CANT_WRITE |
EMPTY_COLLECTION |
NO_CHILD |
NO_SUCH |
UNEXPECTED |
UNSUPPORTED_TYPE |
WRONG_ARG |
WRONG_TYPE |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
makeMessage(java.lang.Enum<?> prefix,
java.lang.Object obj)
Creates message string with the specified prefix and the specified data stored in object.
|
java.lang.String |
toString() |
static LogMessage |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LogMessage[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LogMessage ALREADY_CONTAIN
public static final LogMessage EMPTY_COLLECTION
public static final LogMessage CANT_CREATE_FILE
public static final LogMessage CANT_FIND
public static final LogMessage CANT_PARSE
public static final LogMessage CANT_READ
public static final LogMessage CANT_WRITE
public static final LogMessage CANT_REASSIGN
public static final LogMessage NO_CHILD
public static final LogMessage NO_SUCH
public static final LogMessage UNEXPECTED
public static final LogMessage UNSUPPORTED_TYPE
public static final LogMessage WRONG_ARG
public static final LogMessage WRONG_TYPE
public static LogMessage[] values()
for (LogMessage c : LogMessage.values()) System.out.println(c);
public static LogMessage valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic static java.lang.String makeMessage(java.lang.Enum<?> prefix, java.lang.Object obj)
prefix
- Message prefix.obj
- Message data.String
message starting from the specified prefix and containing data
stored in the specified object.public java.lang.String toString()
toString
in class java.lang.Enum<LogMessage>