Class Accident

  • All Implemented Interfaces:
    Serializable

    public class Accident
    extends TrafficElement
    implements Serializable
    Accidents are events in which one or more vehicles lose control and do not recover. They include collisions between vehicle(s) or other road user(s), between vehicle(s) and any obstacle(s), or they result from a vehicle running off the road.

    Java class for Accident complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType name="Accident">
       <complexContent>
         <extension base="{http://datex2.eu/schema/1_0/1_0}TrafficElement">
           <sequence>
             <element name="accidentCause" type="{http://datex2.eu/schema/1_0/1_0}AccidentCauseEnum" minOccurs="0"/>
             <element name="accidentType" type="{http://datex2.eu/schema/1_0/1_0}AccidentTypeEnum" maxOccurs="unbounded"/>
             <element name="vehicleInvolved" type="{http://datex2.eu/schema/1_0/1_0}Vehicle" maxOccurs="unbounded" minOccurs="0"/>
             <element name="overviewOfVehiclesInvolved" type="{http://datex2.eu/schema/1_0/1_0}VehiclesInvolved" maxOccurs="unbounded" minOccurs="0"/>
             <element name="overviewOfPeopleInvolved" type="{http://datex2.eu/schema/1_0/1_0}PeopleInvolved" maxOccurs="unbounded" minOccurs="0"/>
             <element name="accidentExtension" type="{http://datex2.eu/schema/1_0/1_0}ExtensionType" minOccurs="0"/>
           </sequence>
         </extension>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Constructor Detail

      • Accident

        public Accident()
    • Method Detail

      • setAccidentCause

        public void setAccidentCause​(AccidentCauseEnum value)
        Sets the value of the accidentCause property.
        Parameters:
        value - allowed object is AccidentCauseEnum
      • getAccidentTypes

        public List<AccidentTypeEnum> getAccidentTypes()
        Gets the value of the accidentTypes property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the accidentTypes property.

        For example, to add a new item, do as follows:

            getAccidentTypes().add(newItem);
         

        Objects of the following type(s) are allowed in the list AccidentTypeEnum

      • getVehicleInvolveds

        public List<Vehicle> getVehicleInvolveds()
        Gets the value of the vehicleInvolveds property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the vehicleInvolveds property.

        For example, to add a new item, do as follows:

            getVehicleInvolveds().add(newItem);
         

        Objects of the following type(s) are allowed in the list Vehicle

      • getOverviewOfVehiclesInvolveds

        public List<VehiclesInvolved> getOverviewOfVehiclesInvolveds()
        Gets the value of the overviewOfVehiclesInvolveds property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the overviewOfVehiclesInvolveds property.

        For example, to add a new item, do as follows:

            getOverviewOfVehiclesInvolveds().add(newItem);
         

        Objects of the following type(s) are allowed in the list VehiclesInvolved

      • getOverviewOfPeopleInvolveds

        public List<PeopleInvolved> getOverviewOfPeopleInvolveds()
        Gets the value of the overviewOfPeopleInvolveds property.

        This accessor method returns a reference to the live list, not a snapshot. Therefore any modification you make to the returned list will be present inside the Jakarta XML Binding object. This is why there is not a set method for the overviewOfPeopleInvolveds property.

        For example, to add a new item, do as follows:

            getOverviewOfPeopleInvolveds().add(newItem);
         

        Objects of the following type(s) are allowed in the list PeopleInvolved

      • getAccidentExtension

        public ExtensionType getAccidentExtension()
        Gets the value of the accidentExtension property.
        Returns:
        possible object is ExtensionType
      • setAccidentExtension

        public void setAccidentExtension​(ExtensionType value)
        Sets the value of the accidentExtension property.
        Parameters:
        value - allowed object is ExtensionType