Package org.cxml
Class RailLeg
- java.lang.Object
-
- org.cxml.RailLeg
-
public class RailLeg extends java.lang.Object
-
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.StringarrivalTimeprotected BookingClassCodebookingClassCodeprotected java.lang.StringcarTypeprotected java.lang.StringdepartureTimeprotected java.util.List<Meal>mealprotected RailLegDestinationrailLegDestinationprotected RailLegOriginrailLegOriginprotected Raterateprotected java.lang.StringseatNumberprotected java.lang.StringtrainNumberprotected java.lang.StringtravelSegmentprotected Vendorvendor
-
Constructor Summary
Constructors Constructor Description RailLeg()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetArrivalTime()Gets the value of the arrivalTime property.BookingClassCodegetBookingClassCode()Gets the value of the bookingClassCode property.java.lang.StringgetCarType()Gets the value of the carType property.java.lang.StringgetDepartureTime()Gets the value of the departureTime property.java.util.List<Meal>getMeal()Gets the value of the meal property.RailLegDestinationgetRailLegDestination()Gets the value of the railLegDestination property.RailLegOrigingetRailLegOrigin()Gets the value of the railLegOrigin property.RategetRate()Gets the value of the rate property.java.lang.StringgetSeatNumber()Gets the value of the seatNumber property.java.lang.StringgetTrainNumber()Gets the value of the trainNumber property.java.lang.StringgetTravelSegment()Gets the value of the travelSegment property.VendorgetVendor()Gets the value of the vendor property.voidsetArrivalTime(java.lang.String value)Sets the value of the arrivalTime property.voidsetBookingClassCode(BookingClassCode value)Sets the value of the bookingClassCode property.voidsetCarType(java.lang.String value)Sets the value of the carType property.voidsetDepartureTime(java.lang.String value)Sets the value of the departureTime property.voidsetRailLegDestination(RailLegDestination value)Sets the value of the railLegDestination property.voidsetRailLegOrigin(RailLegOrigin value)Sets the value of the railLegOrigin property.voidsetRate(Rate value)Sets the value of the rate property.voidsetSeatNumber(java.lang.String value)Sets the value of the seatNumber property.voidsetTrainNumber(java.lang.String value)Sets the value of the trainNumber property.voidsetTravelSegment(java.lang.String value)Sets the value of the travelSegment property.voidsetVendor(Vendor value)Sets the value of the vendor property.
-
-
-
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
-
railLegOrigin
protected RailLegOrigin railLegOrigin
-
railLegDestination
protected RailLegDestination railLegDestination
-
bookingClassCode
protected BookingClassCode bookingClassCode
-
rate
protected Rate rate
-
meal
protected java.util.List<Meal> meal
-
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isString
-
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 isVendor
-
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 isRailLegOrigin
-
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 isRailLegDestination
-
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 isBookingClassCode
-
setRate
public void setRate(Rate value)
Sets the value of the rate property.- Parameters:
value- allowed object isRate
-
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
setmethod 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
-
-