public enum AlarmSeverity extends Enum<AlarmSeverity>
Enum Constant and Description |
---|
INVALID
The value is invalid.
|
MAJOR
Major Alarm.
|
MINOR
Minor alarm.
|
NONE
Not in alarm.
|
UNDEFINED
The value is undefined.
|
Modifier and Type | Method and Description |
---|---|
static AlarmSeverity |
getSeverity(int value)
get the alarm severity.
|
static String[] |
getSeverityNames() |
static AlarmSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AlarmSeverity[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AlarmSeverity NONE
public static final AlarmSeverity MINOR
public static final AlarmSeverity MAJOR
public static final AlarmSeverity INVALID
public static final AlarmSeverity UNDEFINED
public static AlarmSeverity[] values()
for (AlarmSeverity c : AlarmSeverity.values()) System.out.println(c);
public static AlarmSeverity 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 static AlarmSeverity getSeverity(int value)
value
- the integer value.public static String[] getSeverityNames()
Copyright © 2014. All Rights Reserved.