org.ota.rail
Class Journey

java.lang.Object
  extended by org.ota.rail.Journey
Direct Known Subclasses:
AvailRS.OriginDestinationOptions.OriginDestinationOption.Journey

public class Journey
extends java.lang.Object

Describes a route Schema fragment(s) for this class:

 <xs:complexType xmlns:ns="http://www.opentravel.org/OTA/2003/05" xmlns:xs="http://www.w3.org/2001/XMLSchema" name="JourneyType">
   <xs:sequence>
     <xs:element type="ns:LocationType" name="OriginLocation"/>
     <xs:element type="ns:LocationType" name="DestinationLocation"/>
   </xs:sequence>
   <xs:attribute type="xs:string" name="RouteCode"/>
   <xs:attribute type="xs:string" name="RouteDescription"/>
 </xs:complexType>
 


Constructor Summary
Journey()
           
 
Method Summary
 Location getDestinationLocation()
          Get the 'DestinationLocation' element value.
 Location getOriginLocation()
          Get the 'OriginLocation' element value.
 java.lang.String getRouteCode()
          Get the 'RouteCode' attribute value.
 java.lang.String getRouteDescription()
          Get the 'RouteDescription' attribute value.
 void setDestinationLocation(Location destinationLocation)
          Set the 'DestinationLocation' element value.
 void setOriginLocation(Location originLocation)
          Set the 'OriginLocation' element value.
 void setRouteCode(java.lang.String routeCode)
          Set the 'RouteCode' attribute value.
 void setRouteDescription(java.lang.String routeDescription)
          Set the 'RouteDescription' attribute value.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Journey

public Journey()
Method Detail

getOriginLocation

public Location getOriginLocation()
Get the 'OriginLocation' element value. Travel Origin Location - for example, air uses the IATA 3 letter code.

Returns:
value

setOriginLocation

public void setOriginLocation(Location originLocation)
Set the 'OriginLocation' element value. Travel Origin Location - for example, air uses the IATA 3 letter code.

Parameters:
originLocation -

getDestinationLocation

public Location getDestinationLocation()
Get the 'DestinationLocation' element value. Travel Destination Location - for example, air uses the IATA 3 letter code.

Returns:
value

setDestinationLocation

public void setDestinationLocation(Location destinationLocation)
Set the 'DestinationLocation' element value. Travel Destination Location - for example, air uses the IATA 3 letter code.

Parameters:
destinationLocation -

getRouteCode

public java.lang.String getRouteCode()
Get the 'RouteCode' attribute value. The 5 digit route code for the fare.

Returns:
value

setRouteCode

public void setRouteCode(java.lang.String routeCode)
Set the 'RouteCode' attribute value. The 5 digit route code for the fare.

Parameters:
routeCode -

getRouteDescription

public java.lang.String getRouteDescription()
Get the 'RouteDescription' attribute value. The route description for the fare.

Returns:
value

setRouteDescription

public void setRouteDescription(java.lang.String routeDescription)
Set the 'RouteDescription' attribute value. The route description for the fare.

Parameters:
routeDescription -