Class 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
    • Constructor Detail

      • Situation

        public Situation()
    • Method Detail

      • setOverallImpact

        public void setOverallImpact​(OverallImpactEnum value)
        Sets the value of the overallImpact property.
        Parameters:
        value - allowed object is OverallImpactEnum
      • 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 set method 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

      • setHeaderInformation

        public void setHeaderInformation​(HeaderInformation value)
        Sets the value of the headerInformation property.
        Parameters:
        value - allowed object is HeaderInformation
      • 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 set method 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 is ExtensionType
      • getId

        public String getId()
        Gets the value of the id property.
        Returns:
        possible object is String
      • setId

        public void setId​(String value)
        Sets the value of the id property.
        Parameters:
        value - allowed object is String