Class DatedVehicleJourney.TrainElements

  • All Implemented Interfaces:
    Serializable
    Enclosing class:
    DatedVehicleJourney

    public static class DatedVehicleJourney.TrainElements
    extends Object
    implements Serializable

    Java class for anonymous complex type.

    The following schema fragment specifies the expected content contained within this class.

     <complexType>
       <complexContent>
         <restriction base="{http://www.w3.org/2001/XMLSchema}anyType">
           <choice maxOccurs="unbounded">
             <element ref="{http://www.siri.org.uk/siri}TrainElementRef"/>
             <element ref="{http://www.siri.org.uk/siri}TrainElement"/>
           </choice>
         </restriction>
       </complexContent>
     </complexType>
     
    See Also:
    Serialized Form
    • Field Detail

      • trainElementRevesAndTrainElements

        protected List<Serializable> trainElementRevesAndTrainElements
    • Constructor Detail

      • TrainElements

        public TrainElements()
    • Method Detail

      • getTrainElementRevesAndTrainElements

        public List<Serializable> getTrainElementRevesAndTrainElements()
        Gets the value of the trainElementRevesAndTrainElements 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 trainElementRevesAndTrainElements property.

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

            getTrainElementRevesAndTrainElements().add(newItem);
         

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