Enum AccidentCauseEnum
- java.lang.Object
-
- java.lang.Enum<AccidentCauseEnum>
-
- eu.datex2.siri20.schema._2_0rc1._2_0.AccidentCauseEnum
-
- All Implemented Interfaces:
Serializable,Comparable<AccidentCauseEnum>
public enum AccidentCauseEnum extends Enum<AccidentCauseEnum>
Java class for AccidentCauseEnum.
The following schema fragment specifies the expected content contained within this class.
<simpleType name="AccidentCauseEnum"> <restriction base="{http://www.w3.org/2001/XMLSchema}string"> <enumeration value="avoidanceOfObstacles"/> <enumeration value="driverDistraction"/> <enumeration value="driverDrugAbuse"/> <enumeration value="driverIllness"/> <enumeration value="exceedingSpeedsLimits"/> <enumeration value="excessAlcohol"/> <enumeration value="excessiveDriverTiredness"/> <enumeration value="impermissibleManoeuvre"/> <enumeration value="limitedVisibility"/> <enumeration value="notKeepingASafeDistance"/> <enumeration value="onTheWrongSideOfTheRoad"/> <enumeration value="pedestrianInRoad"/> <enumeration value="poorLaneAdherence"/> <enumeration value="poorMergeEntryOrExitJudgement"/> <enumeration value="poorRoadSurfaceCondition"/> <enumeration value="poorSurfaceAdherence"/> <enumeration value="undisclosed"/> <enumeration value="unknown"/> <enumeration value="vehicleFailure"/> <enumeration value="other"/> </restriction> </simpleType>
-
-
Enum Constant Summary
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AccidentCauseEnumfromValue(String v)Stringvalue()static AccidentCauseEnumvalueOf(String name)Returns the enum constant of this type with the specified name.static AccidentCauseEnum[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
AVOIDANCE_OF_OBSTACLES
public static final AccidentCauseEnum AVOIDANCE_OF_OBSTACLES
-
DRIVER_DISTRACTION
public static final AccidentCauseEnum DRIVER_DISTRACTION
-
DRIVER_DRUG_ABUSE
public static final AccidentCauseEnum DRIVER_DRUG_ABUSE
-
DRIVER_ILLNESS
public static final AccidentCauseEnum DRIVER_ILLNESS
-
EXCEEDING_SPEEDS_LIMITS
public static final AccidentCauseEnum EXCEEDING_SPEEDS_LIMITS
-
EXCESS_ALCOHOL
public static final AccidentCauseEnum EXCESS_ALCOHOL
-
EXCESSIVE_DRIVER_TIREDNESS
public static final AccidentCauseEnum EXCESSIVE_DRIVER_TIREDNESS
-
IMPERMISSIBLE_MANOEUVRE
public static final AccidentCauseEnum IMPERMISSIBLE_MANOEUVRE
-
LIMITED_VISIBILITY
public static final AccidentCauseEnum LIMITED_VISIBILITY
-
NOT_KEEPING_A_SAFE_DISTANCE
public static final AccidentCauseEnum NOT_KEEPING_A_SAFE_DISTANCE
-
ON_THE_WRONG_SIDE_OF_THE_ROAD
public static final AccidentCauseEnum ON_THE_WRONG_SIDE_OF_THE_ROAD
-
PEDESTRIAN_IN_ROAD
public static final AccidentCauseEnum PEDESTRIAN_IN_ROAD
-
POOR_LANE_ADHERENCE
public static final AccidentCauseEnum POOR_LANE_ADHERENCE
-
POOR_MERGE_ENTRY_OR_EXIT_JUDGEMENT
public static final AccidentCauseEnum POOR_MERGE_ENTRY_OR_EXIT_JUDGEMENT
-
POOR_ROAD_SURFACE_CONDITION
public static final AccidentCauseEnum POOR_ROAD_SURFACE_CONDITION
-
POOR_SURFACE_ADHERENCE
public static final AccidentCauseEnum POOR_SURFACE_ADHERENCE
-
UNDISCLOSED
public static final AccidentCauseEnum UNDISCLOSED
-
UNKNOWN
public static final AccidentCauseEnum UNKNOWN
-
VEHICLE_FAILURE
public static final AccidentCauseEnum VEHICLE_FAILURE
-
OTHER
public static final AccidentCauseEnum OTHER
-
-
Method Detail
-
values
public static AccidentCauseEnum[] 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 (AccidentCauseEnum c : AccidentCauseEnum.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static AccidentCauseEnum 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
-
value
public String value()
-
fromValue
public static AccidentCauseEnum fromValue(String v)
-
-