Enum AccidentCauseEnum
- java.lang.Object
-
- java.lang.Enum<AccidentCauseEnum>
-
- eu.datex2.siri13.schema._1_0._1_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
Enum Constants Enum Constant Description AVOIDANCE_OF_OBSTACLESAvoidance of obstacles on the roadway.DRIVER_DISTRACTIONDriver distraction.DRIVER_DRUG_ABUSEDriver under the influence of drugs.DRIVER_ILLNESSDriver illness.EXCEEDING_SPEEDS_LIMITSLoss of vehicle control due to excessive vehicle speed.EXCESS_ALCOHOLDriver abilities reduced due to driving under the influence of alcohol.EXCESSIVE_DRIVER_TIREDNESSExcessive tiredness of the driver.IMPERMISSIBLE_MANOEUVREA driving manoeuvre which was not permitted.LIMITED_VISIBILITYLimited or impared visibility.NOT_KEEPING_A_SAFE_DISTANCENot keeping a safe distance from the vehicle infront.ON_THE_WRONG_SIDE_OF_THE_ROADDriving on the wrong side of the road.OTHEROther than as defined in this enumeration.PEDESTRIAN_IN_ROADPedestrian in the roadway.POOR_LANE_ADHERENCENot keeping to lane.POOR_MERGE_ENTRY_OR_EXIT_JUDGEMENTPoor judgement when merging at an entry or exit point of a carriageway or junction.POOR_ROAD_SURFACE_CONDITIONPoor road surface condition.POOR_SURFACE_ADHERENCEPoor road surface adherence.UNDISCLOSEDUndisclosed cause.UNKNOWNUnknown cause.VEHICLE_FAILUREMalfunction or failure of vehicle function.
-
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
Avoidance of obstacles on the roadway.
-
DRIVER_DISTRACTION
public static final AccidentCauseEnum DRIVER_DISTRACTION
Driver distraction.
-
DRIVER_DRUG_ABUSE
public static final AccidentCauseEnum DRIVER_DRUG_ABUSE
Driver under the influence of drugs.
-
DRIVER_ILLNESS
public static final AccidentCauseEnum DRIVER_ILLNESS
Driver illness.
-
EXCEEDING_SPEEDS_LIMITS
public static final AccidentCauseEnum EXCEEDING_SPEEDS_LIMITS
Loss of vehicle control due to excessive vehicle speed.
-
EXCESS_ALCOHOL
public static final AccidentCauseEnum EXCESS_ALCOHOL
Driver abilities reduced due to driving under the influence of alcohol. Alcohol levels above nationally accepted limit.
-
EXCESSIVE_DRIVER_TIREDNESS
public static final AccidentCauseEnum EXCESSIVE_DRIVER_TIREDNESS
Excessive tiredness of the driver.
-
IMPERMISSIBLE_MANOEUVRE
public static final AccidentCauseEnum IMPERMISSIBLE_MANOEUVRE
A driving manoeuvre which was not permitted.
-
LIMITED_VISIBILITY
public static final AccidentCauseEnum LIMITED_VISIBILITY
Limited or impared visibility.
-
NOT_KEEPING_A_SAFE_DISTANCE
public static final AccidentCauseEnum NOT_KEEPING_A_SAFE_DISTANCE
Not keeping a safe distance from the vehicle infront.
-
ON_THE_WRONG_SIDE_OF_THE_ROAD
public static final AccidentCauseEnum ON_THE_WRONG_SIDE_OF_THE_ROAD
Driving on the wrong side of the road.
-
PEDESTRIAN_IN_ROAD
public static final AccidentCauseEnum PEDESTRIAN_IN_ROAD
Pedestrian in the roadway.
-
POOR_LANE_ADHERENCE
public static final AccidentCauseEnum POOR_LANE_ADHERENCE
Not keeping to lane.
-
POOR_MERGE_ENTRY_OR_EXIT_JUDGEMENT
public static final AccidentCauseEnum POOR_MERGE_ENTRY_OR_EXIT_JUDGEMENT
Poor judgement when merging at an entry or exit point of a carriageway or junction.
-
POOR_ROAD_SURFACE_CONDITION
public static final AccidentCauseEnum POOR_ROAD_SURFACE_CONDITION
Poor road surface condition.
-
POOR_SURFACE_ADHERENCE
public static final AccidentCauseEnum POOR_SURFACE_ADHERENCE
Poor road surface adherence.
-
UNDISCLOSED
public static final AccidentCauseEnum UNDISCLOSED
Undisclosed cause.
-
UNKNOWN
public static final AccidentCauseEnum UNKNOWN
Unknown cause.
-
VEHICLE_FAILURE
public static final AccidentCauseEnum VEHICLE_FAILURE
Malfunction or failure of vehicle function.
-
OTHER
public static final AccidentCauseEnum OTHER
Other than as defined in this enumeration.
-
-
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)
-
-