Class Accident

  • All Implemented Interfaces:
    Serializable

    public class Accident
    extends TrafficElement
    implements Serializable

    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/2_0RC1/2_0}TrafficElement">
           <sequence>
             <element name="accidentCause" type="{http://datex2.eu/schema/2_0RC1/2_0}AccidentCauseEnum" minOccurs="0"/>
             <element name="accidentType" type="{http://datex2.eu/schema/2_0RC1/2_0}AccidentTypeEnum" maxOccurs="unbounded"/>
             <element name="totalNumberOfPeopleInvolved" type="{http://datex2.eu/schema/2_0RC1/2_0}NonNegativeInteger" minOccurs="0"/>
             <element name="totalNumberOfVehiclesInvolved" type="{http://datex2.eu/schema/2_0RC1/2_0}NonNegativeInteger" minOccurs="0"/>
             <element name="vehicleInvolved" type="{http://datex2.eu/schema/2_0RC1/2_0}Vehicle" maxOccurs="unbounded" minOccurs="0"/>
             <element name="groupOfVehiclesInvolved" type="{http://datex2.eu/schema/2_0RC1/2_0}GroupOfVehiclesInvolved" maxOccurs="unbounded" minOccurs="0"/>
             <element name="groupOfPeopleInvolved" type="{http://datex2.eu/schema/2_0RC1/2_0}GroupOfPeopleInvolved" maxOccurs="unbounded" minOccurs="0"/>
             <element name="accidentExtension" type="{http://datex2.eu/schema/2_0RC1/2_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

      • getTotalNumberOfPeopleInvolved

        public BigInteger getTotalNumberOfPeopleInvolved()
        Gets the value of the totalNumberOfPeopleInvolved property.
        Returns:
        possible object is BigInteger
      • setTotalNumberOfPeopleInvolved

        public void setTotalNumberOfPeopleInvolved​(BigInteger value)
        Sets the value of the totalNumberOfPeopleInvolved property.
        Parameters:
        value - allowed object is BigInteger
      • getTotalNumberOfVehiclesInvolved

        public BigInteger getTotalNumberOfVehiclesInvolved()
        Gets the value of the totalNumberOfVehiclesInvolved property.
        Returns:
        possible object is BigInteger
      • setTotalNumberOfVehiclesInvolved

        public void setTotalNumberOfVehiclesInvolved​(BigInteger value)
        Sets the value of the totalNumberOfVehiclesInvolved property.
        Parameters:
        value - allowed object is BigInteger
      • 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

      • getGroupOfVehiclesInvolveds

        public List<GroupOfVehiclesInvolved> getGroupOfVehiclesInvolveds()
        Gets the value of the groupOfVehiclesInvolveds 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 groupOfVehiclesInvolveds property.

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

            getGroupOfVehiclesInvolveds().add(newItem);
         

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

      • getGroupOfPeopleInvolveds

        public List<GroupOfPeopleInvolved> getGroupOfPeopleInvolveds()
        Gets the value of the groupOfPeopleInvolveds 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 groupOfPeopleInvolveds property.

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

            getGroupOfPeopleInvolveds().add(newItem);
         

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

      • 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