org.ota.rail
Class BookRQ.OriginDestinationOption.TrainSegment

java.lang.Object
  extended by org.ota.rail.BookRQ.OriginDestinationOption.TrainSegment
Enclosing class:
BookRQ.OriginDestinationOption

public static class BookRQ.OriginDestinationOption.TrainSegment
extends java.lang.Object

Full details on one specific train segment, including the origin and destination locations for this segment, the requested class of service, and the operating company, if appropriate. Schema fragment(s) for this class:

 <xs:element xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="TrainSegment" maxOccurs="9">
   <xs:complexType>
     <xs:sequence>
       <xs:element type="ns:LocationType" name="DepartureStation"/>
       <xs:element type="ns:LocationType" name="ArrivalStation"/>
       <xs:element name="ClassCode" minOccurs="0">
         <xs:complexType>
           <xs:attributeGroup ref="ns:CodeListGroup"/>
         </xs:complexType>
       </xs:element>
       <xs:element type="ns:CompanyNameType" name="Vendor" minOccurs="0"/>
     </xs:sequence>
     <xs:attribute type="xs:dateTime" use="optional" name="DepartureDateTime"/>
     <xs:attribute type="xs:string" use="optional" name="TrainNumber"/>
     <xs:attribute type="ns:SeatType" use="optional" name="SeatPreference"/>
     <xs:attribute type="ns:SeatDirectionType" use="optional" name="SeatDirection"/>
   </xs:complexType>
 </xs:element>
 
 <xs:simpleType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="SeatType">
   <!-- Reference to inner class Seat -->
 </xs:simpleType>
 


Nested Class Summary
static class BookRQ.OriginDestinationOption.TrainSegment.Seat
          Identifies the position of a seat, e.g.
 
Constructor Summary
BookRQ.OriginDestinationOption.TrainSegment()
           
 
Method Summary
 Location getArrivalStation()
          Get the 'ArrivalStation' element value.
 CodeListGroup getClassCode()
          Get the 'CodeListGroup' attributeGroup value.
 java.util.Date getDepartureDateTime()
          Get the 'DepartureDateTime' attribute value.
 Location getDepartureStation()
          Get the 'DepartureStation' element value.
 SeatDirection getSeatDirection()
          Get the 'SeatDirection' attribute value.
 BookRQ.OriginDestinationOption.TrainSegment.Seat getSeatPreference()
          Get the 'SeatPreference' attribute value.
 java.lang.String getTrainNumber()
          Get the 'TrainNumber' attribute value.
 CompanyName getVendor()
          Get the 'Vendor' element value.
 void setArrivalStation(Location arrivalStation)
          Set the 'ArrivalStation' element value.
 void setClassCode(CodeListGroup classCode)
          Set the 'CodeListGroup' attributeGroup value.
 void setDepartureDateTime(java.util.Date departureDateTime)
          Set the 'DepartureDateTime' attribute value.
 void setDepartureStation(Location departureStation)
          Set the 'DepartureStation' element value.
 void setSeatDirection(SeatDirection seatDirection)
          Set the 'SeatDirection' attribute value.
 void setSeatPreference(BookRQ.OriginDestinationOption.TrainSegment.Seat seatPreference)
          Set the 'SeatPreference' attribute value.
 void setTrainNumber(java.lang.String trainNumber)
          Set the 'TrainNumber' attribute value.
 void setVendor(CompanyName vendor)
          Set the 'Vendor' element value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BookRQ.OriginDestinationOption.TrainSegment

public BookRQ.OriginDestinationOption.TrainSegment()
Method Detail

getDepartureStation

public Location getDepartureStation()
Get the 'DepartureStation' element value. Departure point of train segment.

Returns:
value

setDepartureStation

public void setDepartureStation(Location departureStation)
Set the 'DepartureStation' element value. Departure point of train segment.

Parameters:
departureStation -

getArrivalStation

public Location getArrivalStation()
Get the 'ArrivalStation' element value. Arrival point of train segment.

Returns:
value

setArrivalStation

public void setArrivalStation(Location arrivalStation)
Set the 'ArrivalStation' element value. Arrival point of train segment.

Parameters:
arrivalStation -

getClassCode

public CodeListGroup getClassCode()
Get the 'CodeListGroup' attributeGroup value. A specific code representing one specific class of service. Such class of service may represent First class, reserved seats, sleeper accommodations, etc.

Returns:
value

setClassCode

public void setClassCode(CodeListGroup classCode)
Set the 'CodeListGroup' attributeGroup value. A specific code representing one specific class of service. Such class of service may represent First class, reserved seats, sleeper accommodations, etc.

Parameters:
classCode -

getVendor

public CompanyName getVendor()
Get the 'Vendor' element value. The marketing train company asscociated with this segment.

Returns:
value

setVendor

public void setVendor(CompanyName vendor)
Set the 'Vendor' element value. The marketing train company asscociated with this segment.

Parameters:
vendor -

getDepartureDateTime

public java.util.Date getDepartureDateTime()
Get the 'DepartureDateTime' attribute value.

Returns:
value

setDepartureDateTime

public void setDepartureDateTime(java.util.Date departureDateTime)
Set the 'DepartureDateTime' attribute value.

Parameters:
departureDateTime -

getTrainNumber

public java.lang.String getTrainNumber()
Get the 'TrainNumber' attribute value.

Returns:
value

setTrainNumber

public void setTrainNumber(java.lang.String trainNumber)
Set the 'TrainNumber' attribute value.

Parameters:
trainNumber -

getSeatPreference

public BookRQ.OriginDestinationOption.TrainSegment.Seat getSeatPreference()
Get the 'SeatPreference' attribute value.

Returns:
value

setSeatPreference

public void setSeatPreference(BookRQ.OriginDestinationOption.TrainSegment.Seat seatPreference)
Set the 'SeatPreference' attribute value.

Parameters:
seatPreference -

getSeatDirection

public SeatDirection getSeatDirection()
Get the 'SeatDirection' attribute value.

Returns:
value

setSeatDirection

public void setSeatDirection(SeatDirection seatDirection)
Set the 'SeatDirection' attribute value.

Parameters:
seatDirection -