Package org.cxml

Class RailLeg


  • public class RailLeg
    extends java.lang.Object
    • Field Detail

      • travelSegment

        protected java.lang.String travelSegment
      • departureTime

        protected java.lang.String departureTime
      • arrivalTime

        protected java.lang.String arrivalTime
      • trainNumber

        protected java.lang.String trainNumber
      • seatNumber

        protected java.lang.String seatNumber
      • carType

        protected java.lang.String carType
      • vendor

        protected Vendor vendor
      • rate

        protected Rate rate
      • meal

        protected java.util.List<Meal> meal
    • Constructor Detail

      • RailLeg

        public RailLeg()
    • Method Detail

      • getTravelSegment

        public java.lang.String getTravelSegment()
        Gets the value of the travelSegment property.
        Returns:
        possible object is String
      • setTravelSegment

        public void setTravelSegment​(java.lang.String value)
        Sets the value of the travelSegment property.
        Parameters:
        value - allowed object is String
      • getDepartureTime

        public java.lang.String getDepartureTime()
        Gets the value of the departureTime property.
        Returns:
        possible object is String
      • setDepartureTime

        public void setDepartureTime​(java.lang.String value)
        Sets the value of the departureTime property.
        Parameters:
        value - allowed object is String
      • getArrivalTime

        public java.lang.String getArrivalTime()
        Gets the value of the arrivalTime property.
        Returns:
        possible object is String
      • setArrivalTime

        public void setArrivalTime​(java.lang.String value)
        Sets the value of the arrivalTime property.
        Parameters:
        value - allowed object is String
      • getTrainNumber

        public java.lang.String getTrainNumber()
        Gets the value of the trainNumber property.
        Returns:
        possible object is String
      • setTrainNumber

        public void setTrainNumber​(java.lang.String value)
        Sets the value of the trainNumber property.
        Parameters:
        value - allowed object is String
      • getSeatNumber

        public java.lang.String getSeatNumber()
        Gets the value of the seatNumber property.
        Returns:
        possible object is String
      • setSeatNumber

        public void setSeatNumber​(java.lang.String value)
        Sets the value of the seatNumber property.
        Parameters:
        value - allowed object is String
      • getCarType

        public java.lang.String getCarType()
        Gets the value of the carType property.
        Returns:
        possible object is String
      • setCarType

        public void setCarType​(java.lang.String value)
        Sets the value of the carType property.
        Parameters:
        value - allowed object is String
      • getVendor

        public Vendor getVendor()
        Gets the value of the vendor property.
        Returns:
        possible object is Vendor
      • setVendor

        public void setVendor​(Vendor value)
        Sets the value of the vendor property.
        Parameters:
        value - allowed object is Vendor
      • getRailLegOrigin

        public RailLegOrigin getRailLegOrigin()
        Gets the value of the railLegOrigin property.
        Returns:
        possible object is RailLegOrigin
      • setRailLegOrigin

        public void setRailLegOrigin​(RailLegOrigin value)
        Sets the value of the railLegOrigin property.
        Parameters:
        value - allowed object is RailLegOrigin
      • setRailLegDestination

        public void setRailLegDestination​(RailLegDestination value)
        Sets the value of the railLegDestination property.
        Parameters:
        value - allowed object is RailLegDestination
      • getBookingClassCode

        public BookingClassCode getBookingClassCode()
        Gets the value of the bookingClassCode property.
        Returns:
        possible object is BookingClassCode
      • setBookingClassCode

        public void setBookingClassCode​(BookingClassCode value)
        Sets the value of the bookingClassCode property.
        Parameters:
        value - allowed object is BookingClassCode
      • getRate

        public Rate getRate()
        Gets the value of the rate property.
        Returns:
        possible object is Rate
      • setRate

        public void setRate​(Rate value)
        Sets the value of the rate property.
        Parameters:
        value - allowed object is Rate
      • getMeal

        public java.util.List<Meal> getMeal()
        Gets the value of the meal 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 meal property.

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

            getMeal().add(newItem);
         

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