
eu.datex2.schema._2._2_0.Accident Maven / Gradle / Ivy
Show all versions of datex2-api Show documentation
package eu.datex2.schema._2._2_0;
import java.util.ArrayList;
import java.util.List;
import javax.xml.bind.annotation.XmlAccessType;
import javax.xml.bind.annotation.XmlAccessorType;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlSchemaType;
import javax.xml.bind.annotation.XmlType;
import javax.xml.bind.annotation.adapters.XmlJavaTypeAdapter;
import org.w3._2001.xmlschema.Adapter2;
/**
* 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/2_0}TrafficElement">
* <sequence>
* <element name="accidentCause" type="{http://datex2.eu/schema/2/2_0}AccidentCauseEnum" minOccurs="0"/>
* <element name="accidentType" type="{http://datex2.eu/schema/2/2_0}AccidentTypeEnum" maxOccurs="unbounded"/>
* <element name="totalNumberOfPeopleInvolved" type="{http://datex2.eu/schema/2/2_0}NonNegativeInteger" minOccurs="0"/>
* <element name="totalNumberOfVehiclesInvolved" type="{http://datex2.eu/schema/2/2_0}NonNegativeInteger" minOccurs="0"/>
* <element name="vehicleInvolved" type="{http://datex2.eu/schema/2/2_0}Vehicle" maxOccurs="unbounded" minOccurs="0"/>
* <element name="groupOfVehiclesInvolved" type="{http://datex2.eu/schema/2/2_0}GroupOfVehiclesInvolved" maxOccurs="unbounded" minOccurs="0"/>
* <element name="groupOfPeopleInvolved" type="{http://datex2.eu/schema/2/2_0}GroupOfPeopleInvolved" maxOccurs="unbounded" minOccurs="0"/>
* <element name="accidentExtension" type="{http://datex2.eu/schema/2/2_0}_ExtensionType" minOccurs="0"/>
* </sequence>
* </extension>
* </complexContent>
* </complexType>
*
*
*
*/
@XmlAccessorType(XmlAccessType.FIELD)
@XmlType(name = "Accident", propOrder = {
"accidentCause",
"accidentType",
"totalNumberOfPeopleInvolved",
"totalNumberOfVehiclesInvolved",
"vehicleInvolved",
"groupOfVehiclesInvolved",
"groupOfPeopleInvolved",
"accidentExtension"
})
public class Accident
extends TrafficElement
{
@XmlSchemaType(name = "string")
protected AccidentCauseEnum accidentCause;
@XmlElement(required = true)
@XmlSchemaType(name = "string")
protected List accidentType;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "nonNegativeInteger")
protected Long totalNumberOfPeopleInvolved;
@XmlElement(type = String.class)
@XmlJavaTypeAdapter(Adapter2 .class)
@XmlSchemaType(name = "nonNegativeInteger")
protected Long totalNumberOfVehiclesInvolved;
protected List vehicleInvolved;
protected List groupOfVehiclesInvolved;
protected List groupOfPeopleInvolved;
protected ExtensionType accidentExtension;
/**
* Gets the value of the accidentCause property.
*
* @return
* possible object is
* {@link AccidentCauseEnum }
*
*/
public AccidentCauseEnum getAccidentCause() {
return accidentCause;
}
/**
* Sets the value of the accidentCause property.
*
* @param value
* allowed object is
* {@link AccidentCauseEnum }
*
*/
public void setAccidentCause(AccidentCauseEnum value) {
this.accidentCause = value;
}
/**
* Gets the value of the accidentType 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 JAXB object.
* This is why there is not a set
method for the accidentType property.
*
*
* For example, to add a new item, do as follows:
*
* getAccidentType().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link AccidentTypeEnum }
*
*
*/
public List getAccidentType() {
if (accidentType == null) {
accidentType = new ArrayList();
}
return this.accidentType;
}
/**
* Gets the value of the totalNumberOfPeopleInvolved property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getTotalNumberOfPeopleInvolved() {
return totalNumberOfPeopleInvolved;
}
/**
* Sets the value of the totalNumberOfPeopleInvolved property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTotalNumberOfPeopleInvolved(Long value) {
this.totalNumberOfPeopleInvolved = value;
}
/**
* Gets the value of the totalNumberOfVehiclesInvolved property.
*
* @return
* possible object is
* {@link String }
*
*/
public Long getTotalNumberOfVehiclesInvolved() {
return totalNumberOfVehiclesInvolved;
}
/**
* Sets the value of the totalNumberOfVehiclesInvolved property.
*
* @param value
* allowed object is
* {@link String }
*
*/
public void setTotalNumberOfVehiclesInvolved(Long value) {
this.totalNumberOfVehiclesInvolved = value;
}
/**
* Gets the value of the vehicleInvolved 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 JAXB object.
* This is why there is not a set
method for the vehicleInvolved property.
*
*
* For example, to add a new item, do as follows:
*
* getVehicleInvolved().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link Vehicle }
*
*
*/
public List getVehicleInvolved() {
if (vehicleInvolved == null) {
vehicleInvolved = new ArrayList();
}
return this.vehicleInvolved;
}
/**
* Gets the value of the groupOfVehiclesInvolved 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 JAXB object.
* This is why there is not a set
method for the groupOfVehiclesInvolved property.
*
*
* For example, to add a new item, do as follows:
*
* getGroupOfVehiclesInvolved().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GroupOfVehiclesInvolved }
*
*
*/
public List getGroupOfVehiclesInvolved() {
if (groupOfVehiclesInvolved == null) {
groupOfVehiclesInvolved = new ArrayList();
}
return this.groupOfVehiclesInvolved;
}
/**
* Gets the value of the groupOfPeopleInvolved 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 JAXB object.
* This is why there is not a set
method for the groupOfPeopleInvolved property.
*
*
* For example, to add a new item, do as follows:
*
* getGroupOfPeopleInvolved().add(newItem);
*
*
*
*
* Objects of the following type(s) are allowed in the list
* {@link GroupOfPeopleInvolved }
*
*
*/
public List getGroupOfPeopleInvolved() {
if (groupOfPeopleInvolved == null) {
groupOfPeopleInvolved = new ArrayList();
}
return this.groupOfPeopleInvolved;
}
/**
* Gets the value of the accidentExtension property.
*
* @return
* possible object is
* {@link ExtensionType }
*
*/
public ExtensionType getAccidentExtension() {
return accidentExtension;
}
/**
* Sets the value of the accidentExtension property.
*
* @param value
* allowed object is
* {@link ExtensionType }
*
*/
public void setAccidentExtension(ExtensionType value) {
this.accidentExtension = value;
}
}