Package org.cxml

Class RailLeg

java.lang.Object
org.cxml.RailLeg

public class RailLeg extends Object
  • Field Details

    • travelSegment

      protected String travelSegment
    • departureTime

      protected String departureTime
    • arrivalTime

      protected String arrivalTime
    • trainNumber

      protected String trainNumber
    • seatNumber

      protected String seatNumber
    • carType

      protected String carType
    • vendor

      protected Vendor vendor
    • railLegOrigin

      protected RailLegOrigin railLegOrigin
    • railLegDestination

      protected RailLegDestination railLegDestination
    • bookingClassCode

      protected BookingClassCode bookingClassCode
    • rate

      protected Rate rate
    • meal

      protected List<Meal> meal
  • Constructor Details

    • RailLeg

      public RailLeg()
  • Method Details

    • getTravelSegment

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

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

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

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

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

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

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

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

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

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

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

      public void setCarType(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
    • getRailLegDestination

      public RailLegDestination getRailLegDestination()
      Gets the value of the railLegDestination property.
      Returns:
      possible object is RailLegDestination
    • 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 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