Class Situation
- java.lang.Object
-
- eu.datex2.siri14.schema._1_0._1_0.Situation
-
- All Implemented Interfaces:
Serializable
public class Situation extends Object implements Serializable
An identifiable instance of a traffic/travel situation comprising one or more traffic/travel circumstances which are linked by one or more causal relationships. Each traffic/travel circumstance is represented by a Situation Record.Java class for Situation complex type.
The following schema fragment specifies the expected content contained within this class.
<complexType name="Situation"> <complexContent> <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> <sequence> <element name="overallImpact" type="{http://datex2.eu/schema/1_0/1_0}OverallImpactEnum" minOccurs="0"/> <element name="relatedSituation" type="{http://datex2.eu/schema/1_0/1_0}Reference" maxOccurs="unbounded" minOccurs="0"/> <element name="headerInformation" type="{http://datex2.eu/schema/1_0/1_0}HeaderInformation"/> <element name="situationRecord" type="{http://datex2.eu/schema/1_0/1_0}SituationRecord" maxOccurs="unbounded"/> <element name="situationExtension" type="{http://datex2.eu/schema/1_0/1_0}ExtensionType" minOccurs="0"/> </sequence> <attribute name="id" use="required" type="{http://www.w3.org/2001/XMLSchema}ID" /> </restriction> </complexContent> </complexType>- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description protected HeaderInformationheaderInformationprotected Stringidprotected OverallImpactEnumoverallImpactprotected List<String>relatedSituationsprotected ExtensionTypesituationExtensionprotected List<SituationRecord>situationRecords
-
Constructor Summary
Constructors Constructor Description Situation()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HeaderInformationgetHeaderInformation()Gets the value of the headerInformation property.StringgetId()Gets the value of the id property.OverallImpactEnumgetOverallImpact()Gets the value of the overallImpact property.List<String>getRelatedSituations()Gets the value of the relatedSituations property.ExtensionTypegetSituationExtension()Gets the value of the situationExtension property.List<SituationRecord>getSituationRecords()Gets the value of the situationRecords property.voidsetHeaderInformation(HeaderInformation value)Sets the value of the headerInformation property.voidsetId(String value)Sets the value of the id property.voidsetOverallImpact(OverallImpactEnum value)Sets the value of the overallImpact property.voidsetSituationExtension(ExtensionType value)Sets the value of the situationExtension property.
-
-
-
Field Detail
-
overallImpact
protected OverallImpactEnum overallImpact
-
headerInformation
protected HeaderInformation headerInformation
-
situationRecords
protected List<SituationRecord> situationRecords
-
situationExtension
protected ExtensionType situationExtension
-
id
protected String id
-
-
Method Detail
-
getOverallImpact
public OverallImpactEnum getOverallImpact()
Gets the value of the overallImpact property.- Returns:
- possible object is
OverallImpactEnum
-
setOverallImpact
public void setOverallImpact(OverallImpactEnum value)
Sets the value of the overallImpact property.- Parameters:
value- allowed object isOverallImpactEnum
-
getRelatedSituations
public List<String> getRelatedSituations()
Gets the value of the relatedSituations 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 relatedSituations property.For example, to add a new item, do as follows:
getRelatedSituations().add(newItem);Objects of the following type(s) are allowed in the list
String
-
getHeaderInformation
public HeaderInformation getHeaderInformation()
Gets the value of the headerInformation property.- Returns:
- possible object is
HeaderInformation
-
setHeaderInformation
public void setHeaderInformation(HeaderInformation value)
Sets the value of the headerInformation property.- Parameters:
value- allowed object isHeaderInformation
-
getSituationRecords
public List<SituationRecord> getSituationRecords()
Gets the value of the situationRecords 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 situationRecords property.For example, to add a new item, do as follows:
getSituationRecords().add(newItem);Objects of the following type(s) are allowed in the list
SituationRecord
-
getSituationExtension
public ExtensionType getSituationExtension()
Gets the value of the situationExtension property.- Returns:
- possible object is
ExtensionType
-
setSituationExtension
public void setSituationExtension(ExtensionType value)
Sets the value of the situationExtension property.- Parameters:
value- allowed object isExtensionType
-
-