Enum AlarmSeverity
- java.lang.Object
-
- java.lang.Enum<AlarmSeverity>
-
- org.opennms.features.vaadin.nodemaps.internal.gwt.client.AlarmSeverity
-
- All Implemented Interfaces:
Serializable
,Comparable<AlarmSeverity>
public enum AlarmSeverity extends Enum<AlarmSeverity>
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AlarmSeverity
get(int id)
getstatic AlarmSeverity
get(String label)
getint
getId()
String
getLabel()
boolean
isGreaterThan(AlarmSeverity other)
isGreaterThanboolean
isGreaterThanOrEqual(AlarmSeverity other)
isGreaterThanOrEqualboolean
isLessThan(AlarmSeverity other)
isLessThanboolean
isLessThanOrEqual(AlarmSeverity other)
isLessThanOrEqualstatic List<String>
labels()
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.
-
-
-
Enum Constant Detail
-
NORMAL
public static final AlarmSeverity NORMAL
-
WARNING
public static final AlarmSeverity WARNING
-
MINOR
public static final AlarmSeverity MINOR
-
MAJOR
public static final AlarmSeverity MAJOR
-
CRITICAL
public static final AlarmSeverity CRITICAL
-
-
Method Detail
-
values
public static AlarmSeverity[] 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 (AlarmSeverity c : AlarmSeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AlarmSeverity 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
-
getId
public int getId()
-
getLabel
public String getLabel()
-
isLessThan
public boolean isLessThan(AlarmSeverity other)
isLessThan
- Parameters:
other
- aorg.opennms.netmgt.model.AlarmSeverity
object.- Returns:
- a boolean.
-
isLessThanOrEqual
public boolean isLessThanOrEqual(AlarmSeverity other)
isLessThanOrEqual
- Parameters:
other
- aorg.opennms.netmgt.model.AlarmSeverity
object.- Returns:
- a boolean.
-
isGreaterThan
public boolean isGreaterThan(AlarmSeverity other)
isGreaterThan
- Parameters:
other
- aorg.opennms.netmgt.model.AlarmSeverity
object.- Returns:
- a boolean.
-
isGreaterThanOrEqual
public boolean isGreaterThanOrEqual(AlarmSeverity other)
isGreaterThanOrEqual
- Parameters:
other
- aorg.opennms.netmgt.model.AlarmSeverity
object.- Returns:
- a boolean.
-
get
public static AlarmSeverity get(int id)
get
- Parameters:
id
- a int.- Returns:
- a
org.opennms.netmgt.model.AlarmSeverity
object.
-
get
public static AlarmSeverity get(String label)
get
- Parameters:
label
- aString
object.- Returns:
- a
org.opennms.netmgt.model.AlarmSeverity
object.
-
-