public class RailLeg
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
protected java.lang.String |
arrivalTime |
protected BookingClassCode |
bookingClassCode |
protected java.lang.String |
carType |
protected java.lang.String |
departureTime |
protected java.util.List<Meal> |
meal |
protected RailLegDestination |
railLegDestination |
protected RailLegOrigin |
railLegOrigin |
protected Rate |
rate |
protected java.lang.String |
seatNumber |
protected java.lang.String |
trainNumber |
protected java.lang.String |
travelSegment |
protected Vendor |
vendor |
| Constructor and Description |
|---|
RailLeg() |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String |
getArrivalTime()
Gets the value of the arrivalTime property.
|
BookingClassCode |
getBookingClassCode()
Gets the value of the bookingClassCode property.
|
java.lang.String |
getCarType()
Gets the value of the carType property.
|
java.lang.String |
getDepartureTime()
Gets the value of the departureTime property.
|
java.util.List<Meal> |
getMeal()
Gets the value of the meal property.
|
RailLegDestination |
getRailLegDestination()
Gets the value of the railLegDestination property.
|
RailLegOrigin |
getRailLegOrigin()
Gets the value of the railLegOrigin property.
|
Rate |
getRate()
Gets the value of the rate property.
|
java.lang.String |
getSeatNumber()
Gets the value of the seatNumber property.
|
java.lang.String |
getTrainNumber()
Gets the value of the trainNumber property.
|
java.lang.String |
getTravelSegment()
Gets the value of the travelSegment property.
|
Vendor |
getVendor()
Gets the value of the vendor property.
|
void |
setArrivalTime(java.lang.String value)
Sets the value of the arrivalTime property.
|
void |
setBookingClassCode(BookingClassCode value)
Sets the value of the bookingClassCode property.
|
void |
setCarType(java.lang.String value)
Sets the value of the carType property.
|
void |
setDepartureTime(java.lang.String value)
Sets the value of the departureTime property.
|
void |
setRailLegDestination(RailLegDestination value)
Sets the value of the railLegDestination property.
|
void |
setRailLegOrigin(RailLegOrigin value)
Sets the value of the railLegOrigin property.
|
void |
setRate(Rate value)
Sets the value of the rate property.
|
void |
setSeatNumber(java.lang.String value)
Sets the value of the seatNumber property.
|
void |
setTrainNumber(java.lang.String value)
Sets the value of the trainNumber property.
|
void |
setTravelSegment(java.lang.String value)
Sets the value of the travelSegment property.
|
void |
setVendor(Vendor value)
Sets the value of the vendor property.
|
protected java.lang.String travelSegment
protected java.lang.String departureTime
protected java.lang.String arrivalTime
protected java.lang.String trainNumber
protected java.lang.String seatNumber
protected java.lang.String carType
protected Vendor vendor
protected RailLegOrigin railLegOrigin
protected RailLegDestination railLegDestination
protected BookingClassCode bookingClassCode
protected Rate rate
protected java.util.List<Meal> meal
public java.lang.String getTravelSegment()
Stringpublic void setTravelSegment(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getDepartureTime()
Stringpublic void setDepartureTime(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getArrivalTime()
Stringpublic void setArrivalTime(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getTrainNumber()
Stringpublic void setTrainNumber(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getSeatNumber()
Stringpublic void setSeatNumber(java.lang.String value)
value - allowed object is
Stringpublic java.lang.String getCarType()
Stringpublic void setCarType(java.lang.String value)
value - allowed object is
Stringpublic Vendor getVendor()
Vendorpublic void setVendor(Vendor value)
value - allowed object is
Vendorpublic RailLegOrigin getRailLegOrigin()
RailLegOriginpublic void setRailLegOrigin(RailLegOrigin value)
value - allowed object is
RailLegOriginpublic RailLegDestination getRailLegDestination()
RailLegDestinationpublic void setRailLegDestination(RailLegDestination value)
value - allowed object is
RailLegDestinationpublic BookingClassCode getBookingClassCode()
BookingClassCodepublic void setBookingClassCode(BookingClassCode value)
value - allowed object is
BookingClassCodepublic void setRate(Rate value)
value - allowed object is
Ratepublic java.util.List<Meal> getMeal()
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
Copyright © 2018 SAP SE. All Rights Reserved.