|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||
java.lang.Objectjava.lang.Enum<OnmsSeverity>
org.opennms.netmgt.model.OnmsSeverity
public enum OnmsSeverity
OpenNMS severity enumeration.
| Enum Constant Summary | |
|---|---|
CLEARED
|
|
CRITICAL
|
|
INDETERMINATE
|
|
MAJOR
|
|
MINOR
|
|
NORMAL
|
|
WARNING
|
|
| Method Summary | |
|---|---|
static OnmsSeverity |
escalate(OnmsSeverity sev)
escalate |
static OnmsSeverity |
get(int id)
get |
static OnmsSeverity |
get(String label)
get |
String |
getColor()
getColor |
int |
getId()
getId |
String |
getLabel()
getLabel |
boolean |
isGreaterThan(OnmsSeverity other)
isGreaterThan |
boolean |
isGreaterThanOrEqual(OnmsSeverity other)
isGreaterThanOrEqual |
boolean |
isLessThan(OnmsSeverity other)
isLessThan |
boolean |
isLessThanOrEqual(OnmsSeverity other)
isLessThanOrEqual |
static OnmsSeverity |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static OnmsSeverity[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
| Methods inherited from class java.lang.Enum |
|---|
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, wait, wait, wait |
| Enum Constant Detail |
|---|
public static final OnmsSeverity INDETERMINATE
public static final OnmsSeverity CLEARED
public static final OnmsSeverity NORMAL
public static final OnmsSeverity WARNING
public static final OnmsSeverity MINOR
public static final OnmsSeverity MAJOR
public static final OnmsSeverity CRITICAL
| Method Detail |
|---|
public static OnmsSeverity[] values()
for (OnmsSeverity c : OnmsSeverity.values()) System.out.println(c);
public static OnmsSeverity valueOf(String name)
name - the name of the enum constant to be returned.
IllegalArgumentException - if this enum type has no constant
with the specified name
NullPointerException - if the argument is nullpublic int getId()
getId
public String getLabel()
getLabel
String object.public String getColor()
getColor
String object.public boolean isLessThan(OnmsSeverity other)
isLessThan
other - a OnmsSeverity object.
public boolean isLessThanOrEqual(OnmsSeverity other)
isLessThanOrEqual
other - a OnmsSeverity object.
public boolean isGreaterThan(OnmsSeverity other)
isGreaterThan
other - a OnmsSeverity object.
public boolean isGreaterThanOrEqual(OnmsSeverity other)
isGreaterThanOrEqual
other - a OnmsSeverity object.
public static OnmsSeverity get(int id)
get
id - a int.
OnmsSeverity object.public static OnmsSeverity get(String label)
get
label - a String object.
OnmsSeverity object.public static OnmsSeverity escalate(OnmsSeverity sev)
escalate
sev - a OnmsSeverity object.
OnmsSeverity object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD | |||||||||