Package org.epics.pvdata.property
Enum AlarmSeverity
- java.lang.Object
-
- java.lang.Enum<AlarmSeverity>
-
- org.epics.pvdata.property.AlarmSeverity
-
- All Implemented Interfaces:
Serializable,Comparable<AlarmSeverity>
public enum AlarmSeverity extends Enum<AlarmSeverity>
AlarmSeverity definitions.- Author:
- mrk
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static AlarmSeveritygetSeverity(int value)Get the alarm severity.static String[]getSeverityNames()Get the names associated with each severity.static AlarmSeverityvalueOf(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
-
NONE
public static final AlarmSeverity NONE
Not in alarm.
-
MINOR
public static final AlarmSeverity MINOR
Minor alarm.
-
MAJOR
public static final AlarmSeverity MAJOR
Major Alarm.
-
INVALID
public static final AlarmSeverity INVALID
The value is invalid.
-
UNDEFINED
public static final AlarmSeverity UNDEFINED
The value is undefined.
-
-
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
-
getSeverity
public static AlarmSeverity getSeverity(int value)
Get the alarm severity.- Parameters:
value- the integer value- Returns:
- the alarm severity
-
getSeverityNames
public static String[] getSeverityNames()
Get the names associated with each severity.- Returns:
- the array of names
-
-