Class Accident
- java.lang.Object
-
- eu.datex2.siri13.schema._1_0._1_0.SituationRecord
-
- eu.datex2.siri13.schema._1_0._1_0.TrafficElement
-
- eu.datex2.siri13.schema._1_0._1_0.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
-
-
Field Summary
Fields Modifier and Type Field Description protected AccidentCauseEnumaccidentCauseprotected ExtensionTypeaccidentExtensionprotected List<AccidentTypeEnum>accidentTypesprotected List<PeopleInvolved>overviewOfPeopleInvolvedsprotected List<VehiclesInvolved>overviewOfVehiclesInvolvedsprotected List<Vehicle>vehicleInvolveds-
Fields inherited from class eu.datex2.siri13.schema._1_0._1_0.TrafficElement
trafficElementExtension
-
Fields inherited from class eu.datex2.siri13.schema._1_0._1_0.SituationRecord
advices, cause, generalPublicComments, groupOfLocations, id, impact, informationUsageOverride, management, nonGeneralPublicComments, probabilityOfOccurrence, situationRecordCreationReference, situationRecordCreationTime, situationRecordExtension, situationRecordFirstSupplierVersionTime, situationRecordObservationTime, situationRecordVersion, situationRecordVersionTime, sourceInformation, validity
-
-
Constructor Summary
Constructors Constructor Description Accident()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccidentCauseEnumgetAccidentCause()Gets the value of the accidentCause property.ExtensionTypegetAccidentExtension()Gets the value of the accidentExtension property.List<AccidentTypeEnum>getAccidentTypes()Gets the value of the accidentTypes property.List<PeopleInvolved>getOverviewOfPeopleInvolveds()Gets the value of the overviewOfPeopleInvolveds property.List<VehiclesInvolved>getOverviewOfVehiclesInvolveds()Gets the value of the overviewOfVehiclesInvolveds property.List<Vehicle>getVehicleInvolveds()Gets the value of the vehicleInvolveds property.voidsetAccidentCause(AccidentCauseEnum value)Sets the value of the accidentCause property.voidsetAccidentExtension(ExtensionType value)Sets the value of the accidentExtension property.-
Methods inherited from class eu.datex2.siri13.schema._1_0._1_0.TrafficElement
getTrafficElementExtension, setTrafficElementExtension
-
Methods inherited from class eu.datex2.siri13.schema._1_0._1_0.SituationRecord
getAdvices, getCause, getGeneralPublicComments, getGroupOfLocations, getId, getImpact, getInformationUsageOverride, getManagement, getNonGeneralPublicComments, getProbabilityOfOccurrence, getSituationRecordCreationReference, getSituationRecordCreationTime, getSituationRecordExtension, getSituationRecordFirstSupplierVersionTime, getSituationRecordObservationTime, getSituationRecordVersion, getSituationRecordVersionTime, getSourceInformation, getValidity, setCause, setGroupOfLocations, setId, setImpact, setInformationUsageOverride, setManagement, setProbabilityOfOccurrence, setSituationRecordCreationReference, setSituationRecordCreationTime, setSituationRecordExtension, setSituationRecordFirstSupplierVersionTime, setSituationRecordObservationTime, setSituationRecordVersion, setSituationRecordVersionTime, setSourceInformation, setValidity
-
-
-
-
Field Detail
-
accidentCause
protected AccidentCauseEnum accidentCause
-
accidentTypes
protected List<AccidentTypeEnum> accidentTypes
-
overviewOfVehiclesInvolveds
protected List<VehiclesInvolved> overviewOfVehiclesInvolveds
-
overviewOfPeopleInvolveds
protected List<PeopleInvolved> overviewOfPeopleInvolveds
-
accidentExtension
protected ExtensionType accidentExtension
-
-
Method Detail
-
getAccidentCause
public AccidentCauseEnum getAccidentCause()
Gets the value of the accidentCause property.- Returns:
- possible object is
AccidentCauseEnum
-
setAccidentCause
public void setAccidentCause(AccidentCauseEnum value)
Sets the value of the accidentCause property.- Parameters:
value- allowed object isAccidentCauseEnum
-
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
setmethod 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
setmethod 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
setmethod 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
setmethod 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 isExtensionType
-
-