public enum EMessageType extends Enum<EMessageType>
Message5WH.
Supported types are information, warning and error. Each type has an associated unique number and a default name for a logger.
The logger name can be used in combination with logging frameworks (such as slf4j or log4j), which need to be configured appropriatetly.| Enum Constant and Description |
|---|
ERROR
An error message, usually rather formal in format
|
INFO
An information (or informal) message
|
WARNING
A warning message, usually rather formal in format
|
| Modifier and Type | Method and Description |
|---|---|
String |
getLoggerName()
Returns the logger name associated with the enumerate instance.
|
int |
getNumber()
Returns a unique number for this enumerate.
|
String |
toString() |
static EMessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EMessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EMessageType INFO
public static final EMessageType WARNING
public static final EMessageType ERROR
public static EMessageType[] values()
for (EMessageType c : EMessageType.values()) System.out.println(c);
public static EMessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getLoggerName()
public int getNumber()
public String toString()
toString in class Enum<EMessageType>Copyright © 2010–2015. All rights reserved.