Enum ESeverity
- java.lang.Object
-
- java.lang.Enum<ESeverity>
-
- org.onebusaway.transit_data.model.service_alerts.ESeverity
-
- All Implemented Interfaces:
Serializable
,Comparable<ESeverity>
public enum ESeverity extends Enum<ESeverity>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description NO_IMPACT
NORMAL
SEVERE
SLIGHT
UNDEFINED
We make the numeric weight of an undefined or unknown service alert that same as a normal service alert.UNKNOWN
VERY_SEVERE
VERY_SLIGHT
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getNumericValue()
String[]
getTpegCodes()
static ESeverity
valueOf(String name)
Returns the enum constant of this type with the specified name.static ESeverity
valueOfTpegCode(String value)
static ESeverity[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NO_IMPACT
public static final ESeverity NO_IMPACT
-
UNDEFINED
public static final ESeverity UNDEFINED
We make the numeric weight of an undefined or unknown service alert that same as a normal service alert.
-
UNKNOWN
public static final ESeverity UNKNOWN
-
VERY_SLIGHT
public static final ESeverity VERY_SLIGHT
-
SLIGHT
public static final ESeverity SLIGHT
-
NORMAL
public static final ESeverity NORMAL
-
SEVERE
public static final ESeverity SEVERE
-
VERY_SEVERE
public static final ESeverity VERY_SEVERE
-
-
Method Detail
-
values
public static ESeverity[] 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 (ESeverity c : ESeverity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ESeverity 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
-
getNumericValue
public int getNumericValue()
-
getTpegCodes
public String[] getTpegCodes()
-
-