org.onebusaway.transit_data.model.service_alerts
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>
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
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 name
NullPointerException
- if the argument is null
getNumericValue
public int getNumericValue()
getTpegCodes
public String[] getTpegCodes()
valueOfTpegCode
public static ESeverity valueOfTpegCode(String value)
Copyright © 2012 OneBusAway. All Rights Reserved.