com.azalient.api.b.parameters
Enum IIncident.Cause

java.lang.Object
  extended by java.lang.Enum<IIncident.Cause>
      extended by com.azalient.api.b.parameters.IIncident.Cause
All Implemented Interfaces:
Serializable, Comparable<IIncident.Cause>
Enclosing interface:
IIncident

public static enum IIncident.Cause
extends Enum<IIncident.Cause>

An enumeration of causes for an incident


Enum Constant Summary
ACCIDENT
           
BREAKDOWN
           
OTHER
           
 
Method Summary
static IIncident.Cause valueOf(String name)
          Returns the enum constant of this type with the specified name.
static IIncident.Cause[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

BREAKDOWN

public static final IIncident.Cause BREAKDOWN

ACCIDENT

public static final IIncident.Cause ACCIDENT

OTHER

public static final IIncident.Cause OTHER
Method Detail

values

public static IIncident.Cause[] 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 (IIncident.Cause c : IIncident.Cause.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static IIncident.Cause 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