org.onebusaway.transit_data.model.service_alerts
Enum ESeverity

java.lang.Object
  extended by java.lang.Enum<ESeverity>
      extended by org.onebusaway.transit_data.model.service_alerts.ESeverity
All Implemented Interfaces:
Serializable, Comparable<ESeverity>

public enum ESeverity
extends Enum<ESeverity>


Enum Constant Summary
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
 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.
 
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

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 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.