public static enum AlertMessage.AlertLevel extends Enum<AlertMessage.AlertLevel>
| Modifier and Type | Method and Description |
|---|---|
byte |
getCode() |
static AlertMessage.AlertLevel |
getLevelByCode(int code)
Gets the alert level for a given code.
|
static AlertMessage.AlertLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlertMessage.AlertLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlertMessage.AlertLevel WARNING
public static final AlertMessage.AlertLevel FATAL
public static AlertMessage.AlertLevel[] values()
for (AlertMessage.AlertLevel c : AlertMessage.AlertLevel.values()) System.out.println(c);
public static AlertMessage.AlertLevel 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 byte getCode()
public static AlertMessage.AlertLevel getLevelByCode(int code)
code - the codenull if no alert level exists for the given codeCopyright © 2023 Eclipse Foundation. All rights reserved.